summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d0d706)
raw | patch | inline | side by side (parent: 2d0d706)
author | Nicolas Pitre <nico@fluxnic.net> | |
Fri, 22 Jan 2010 05:55:15 +0000 (00:55 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 22 Jan 2010 06:02:28 +0000 (22:02 -0800) |
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>
as already done elsewhere.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4 | patch | blob | history |
index 48059d0aa74fe5f4c14bd74f599d449335ef8519..d1512e0acf7015533bd55e821f9a663285fa4930 100755 (executable)
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"