Code

t/README: document --root option
[git.git] / git-send-email.perl
index 33bcfb4e763f04f2d4fc12f4d9948d958c507d32..ce569a9c8f964b3cdc8920325bc817141035c2c3 100755 (executable)
@@ -166,9 +166,12 @@ my $compose_filename;
 
 # Handle interactive edition of files.
 my $multiedit;
-my $editor = Git::command_oneline('var', 'GIT_EDITOR');
+my $editor;
 
 sub do_edit {
+       if (!defined($editor)) {
+               $editor = Git::command_oneline('var', 'GIT_EDITOR');
+       }
        if (defined($multiedit) && !$multiedit) {
                map {
                        system('sh', '-c', $editor.' "$@"', $editor, $_);