summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Anderson <ryan@michonline.com>2005-08-01 00:04:25 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-03 05:53:25 (GMT)
commitca9a7d657101cb88246e1770b29296678601750b (patch)
tree375a0d992d3c0a907c910a7631aceb0d8cdecf7f
parent3342d8500f8393ace9030a44496943b6a8de1dc3 (diff)
downloadgit-ca9a7d657101cb88246e1770b29296678601750b.zip
git-ca9a7d657101cb88246e1770b29296678601750b.tar.gz
git-ca9a7d657101cb88246e1770b29296678601750b.tar.bz2
[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>
-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 4927cec..59bd691 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) {