Browse Source

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>
maint
Nicolas Pitre 15 years ago committed by Junio C Hamano
parent
commit
8b187e6b0e
  1. 2
      contrib/fast-import/git-p4

2
contrib/fast-import/git-p4

@ -732,7 +732,7 @@ class P4Submit(Command): @@ -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"

Loading…
Cancel
Save