aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Hendeby <hendeby@isy.liu.se>2007-12-22 01:40:52 +0100
committerJunio C Hamano <gitster@pobox.com>2007-12-22 00:21:30 -0800
commit0e0278baad8752da6c3b37495f005dc1dd6f799a (patch)
treed4a0a4df72ff2c0254a2fb1226f7d49bc5d7c5ec
parent78d776a9699cd3e3d368366afaa66dee97e53ac5 (diff)
downloadgit-0e0278baad8752da6c3b37495f005dc1dd6f799a.tar.gz
git-0e0278baad8752da6c3b37495f005dc1dd6f799a.tar.xz
Make git send-email accept $EDITOR with arguments
Currently git send-email does not accept $EDITOR with arguments, eg, emacs -nw, when starting an editor to produce a cover letter. This patch changes this by letting the shell handle the option parsing. Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 248d03508..e47994afc 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -400,7 +400,7 @@ EOT
close(C);
my $editor = $ENV{GIT_EDITOR} || $repo->config("core.editor") || $ENV{VISUAL} || $ENV{EDITOR} || "vi";
- system($editor, $compose_filename);
+ system('sh', '-c', '$0 $@', $editor, $compose_filename);
open(C2,">",$compose_filename . ".final")
or die "Failed to open $compose_filename.final : " . $!;