fix git-p4 editor invocation
The strip() is required to remove the trailing newline character, as already done elsewhere. Signed-off-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nicolas Pitre committed
Jan 22, 2010 at 00:55 UTC
8b187e6b0e114055071a9ae8f56b9a2a24bfaf8f
1 file changed
+1
-1
contrib/fast-import/git-p4
+1
-1
@@ -732,7 +732,7 @@ class P4Submit(Command):
732
if os.environ.has_key("P4EDITOR"):
733
editor = os.environ.get("P4EDITOR")
734
else:
735
- editor = read_pipe("git var GIT_EDITOR")
735
+ editor = read_pipe("git var GIT_EDITOR").strip()
736
system(editor + " " + fileName)
737
738
response = "y"