summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-07-01 16:22:29 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-07-01 16:22:29 -0700
commitf7c3cf8106c09c714d46d39e8eef69838db8b339 (patch)
treee181da0fa9f7a4f44da96bfcf8a9b4c598c5910e /git-send-email.perl
parentMerge branch 'tr/send-email-ssl' (diff)
parentgit-send-email: Accept fifos as well as files (diff)
downloadtgif-f7c3cf8106c09c714d46d39e8eef69838db8b339.tar.xz
Merge branch 'kb/send-email-fifo'
* kb/send-email-fifo: git-send-email: Accept fifos as well as files
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl8
1 files changed, 5 insertions, 3 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index edb12c2aaa..a047b016e3 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -408,7 +408,7 @@ for my $f (@ARGV) {
push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);
- } elsif (-f $f) {
+ } elsif (-f $f or -p $f) {
push @files, $f;
} else {
@@ -418,8 +418,10 @@ for my $f (@ARGV) {
if (!$no_validate) {
foreach my $f (@files) {
- my $error = validate_patch($f);
- $error and die "fatal: $f: $error\nwarning: no patches were sent\n";
+ unless (-p $f) {
+ my $error = validate_patch($f);
+ $error and die "fatal: $f: $error\nwarning: no patches were sent\n";
+ }
}
}