diff options
author | Gustaf Hendeby <hendeby@isy.liu.se> | 2007-12-22 01:40:52 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-22 00:21:30 -0800 |
commit | 0e0278baad8752da6c3b37495f005dc1dd6f799a (patch) | |
tree | d4a0a4df72ff2c0254a2fb1226f7d49bc5d7c5ec | |
parent | 78d776a9699cd3e3d368366afaa66dee97e53ac5 (diff) | |
download | git-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-x | git-send-email.perl | 2 |
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 : " . $!; |