Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git p4: Ignore P4EDITOR if it is empty
author
Luke Diamand
<luke@diamand.org>
Tue, 24 Apr 2012 08:33:21 +0000
(09:33 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 24 Apr 2012 21:22:21 +0000
(14:22 -0700)
p4 itself treats an empty value for P4EDITOR as the same as
having P4EDITOR unset. Do the same for "git p4".
Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
1e3e718
)
diff --git
a/git-p4.py
b/git-p4.py
index 0009d733f6376e208b5e31ecd53f41f542626aa6..6ce88ffb5126bc72b9947559077908a96507b2d5 100755
(executable)
--- a/
git-p4.py
+++ b/
git-p4.py
@@
-994,7
+994,7
@@
def edit_template(self, template_file):
mtime = os.stat(template_file).st_mtime
# invoke the editor
- if os.environ.has_key("P4EDITOR"):
+ if os.environ.has_key("P4EDITOR")
and (os.environ.get("P4EDITOR") != "")
:
editor = os.environ.get("P4EDITOR")
else:
editor = read_pipe("git var GIT_EDITOR").strip()