summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-11-29 12:52:42 -0800
committerJunio C Hamano <gitster@pobox.com>2012-11-29 12:52:42 -0800
commit175bd3b0d0aef3af1bf2595840eebd7af9c1d1a5 (patch)
tree389fdd0eb6fcd9a3e664fcc079cd04372add079d /git-send-email.perl
parent03a23a46c5079033300f792f7a76464f0c818733 (diff)
parent8cac13dccbf78005f1579bf22dbac1bfe27e1572 (diff)
downloadgit-175bd3b0d0aef3af1bf2595840eebd7af9c1d1a5.tar.gz
Merge branch 'fc/send-email-no-sender-prompt'
* fc/send-email-no-sender-prompt: send-email: avoid questions when user has an ident
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl7
1 files changed, 1 insertions, 6 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 5a7c29db93..aca0225e56 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -753,16 +753,11 @@ if (!$force) {
}
}
-my $prompting = 0;
if (!defined $sender) {
$sender = $repoauthor || $repocommitter || '';
- $sender = ask("Who should the emails appear to be from? [$sender] ",
- default => $sender,
- valid_re => qr/\@.*\./, confirm_only => 1);
- print "Emails will be sent from: ", $sender, "\n";
- $prompting++;
}
+my $prompting = 0;
if (!@initial_to && !defined $to_cmd) {
my $to = ask("Who should the emails be sent to (if any)? ",
default => "",