diff options
author | Jay Soffian <jaysoffian@gmail.com> | 2009-03-31 12:22:12 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-01 11:11:21 -0700 |
commit | dc1460aa8de64f62b4612b6d2546ed7b88050de2 (patch) | |
tree | ad4c752bb4a7e4b04de2bf78235043a1e99c454e /git-send-email.perl | |
parent | 5906f54e474c6e8aabb0f6b955d446b509cde06e (diff) | |
download | git-dc1460aa8de64f62b4612b6d2546ed7b88050de2.tar.gz git-dc1460aa8de64f62b4612b6d2546ed7b88050de2.tar.xz |
send-email: ask_default should apply to all emails, not just the first
Commit 6e18251 made the "Send this email?" prompt assume yes if confirm
= "inform" when it was unable to get a valid response. However, the
"yes" assumption only worked correctly for the first email. This commit
fixes the issue and confirms the fix by modifying the existing test for
the prompt to send multiple emails.
Reported by Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index d790660bc..fc153f945 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -687,7 +687,7 @@ if ($compose && $compose > 0) { # Variables we set as part of the loop over files our ($message_id, %mail, $subject, $reply_to, $references, $message, - $needs_confirm, $message_num); + $needs_confirm, $message_num, $ask_default); sub extract_valid_address { my $address = shift; @@ -845,7 +845,6 @@ X-Mailer: git-send-email $gitversion if ($needs_confirm && !$dry_run) { print "\n$header\n"; - my $ask_default; if ($needs_confirm eq "inform") { $confirm_unconfigured = 0; # squelch this message for the rest of this run $ask_default = "y"; # assume yes on EOF since user hasn't explicitly asked for confirmation |