summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2010-01-22 05:55:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-22 06:02:28 (GMT)
commit8b187e6b0e114055071a9ae8f56b9a2a24bfaf8f (patch)
treeb22f22016a24d5effb077dc781fd2f7dd36db55b
parent2d0d706e5fd08b751a19562974ae0b76d9db03a1 (diff)
downloadgit-8b187e6b0e114055071a9ae8f56b9a2a24bfaf8f.zip
git-8b187e6b0e114055071a9ae8f56b9a2a24bfaf8f.tar.gz
git-8b187e6b0e114055071a9ae8f56b9a2a24bfaf8f.tar.bz2
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>
-rwxr-xr-xcontrib/fast-import/git-p42
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 48059d0..d1512e0 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -732,7 +732,7 @@ class P4Submit(Command):
if os.environ.has_key("P4EDITOR"):
editor = os.environ.get("P4EDITOR")
else:
- editor = read_pipe("git var GIT_EDITOR")
+ editor = read_pipe("git var GIT_EDITOR").strip()
system(editor + " " + fileName)
response = "y"