summaryrefslogtreecommitdiffstats
path: root/git-send-email-script
diff options
context:
space:
mode:
authorRyan Anderson <ryan@michonline.com>2005-08-01 02:04:25 +0200
committerJunio C Hamano <junkio@cox.net>2005-08-03 07:53:25 +0200
commitca9a7d657101cb88246e1770b29296678601750b (patch)
tree375a0d992d3c0a907c910a7631aceb0d8cdecf7f /git-send-email-script
parent[PATCH] Make the SMTP server used by git-sendm-email-script configurable on t... (diff)
downloadgit-ca9a7d657101cb88246e1770b29296678601750b.tar.xz
git-ca9a7d657101cb88246e1770b29296678601750b.zip
[PATCH] git-send-email-script - fix 2 small bugs that snuck through an untested bout of editing.
Signed-off-by: Ryan Anderson <ryan@michonline.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to '')
-rwxr-xr-xgit-send-email-script4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-send-email-script b/git-send-email-script
index 4927cec3d0..59bd691fc5 100755
--- a/git-send-email-script
+++ b/git-send-email-script
@@ -73,7 +73,7 @@ if (!defined $from) {
do {
$_ = $term->readline("Who should the emails appear to be from? ",
$from);
- while (!defined $_);
+ } while (!defined $_);
$from = $_;
print "Emails will be sent from: ", $from, "\n";
@@ -117,7 +117,7 @@ for my $f (@ARGV) {
opendir(DH,$f)
or die "Failed to opendir $f: $!";
- push @files, map { +$f . "/" . $_ } grep { -f $_ }
+ push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);
} elsif (-f $f) {