git p4 test: do not pollute /tmp
[gitweb.git] / git-p4.py
index e798ecf48c6c85066c2b90706bc8026f82bd34fb..a4414b58b9e6e313d0789994a42b31ccabecf085 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -1220,7 +1220,7 @@ def edit_template(self, template_file):
             editor = os.environ.get("P4EDITOR")
         else:
             editor = read_pipe("git var GIT_EDITOR").strip()
-        system(editor + " " + template_file)
+        system([editor, template_file])
 
         # If the file was not saved, prompt to see if this patch should
         # be skipped.  But skip this verification step if configured so.