Skip to content

Commit f7c3cf8

Browse files
committed
Merge branch 'kb/send-email-fifo'
* kb/send-email-fifo: git-send-email: Accept fifos as well as files
2 parents 74c3664 + 300913b commit f7c3cf8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

git-send-email.perl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ sub read_config {
408408
push @files, grep { -f $_ } map { +$f . "/" . $_ }
409409
sort readdir(DH);
410410

411-
} elsif (-f $f) {
411+
} elsif (-f $f or -p $f) {
412412
push @files, $f;
413413

414414
} else {
@@ -418,8 +418,10 @@ sub read_config {
418418

419419
if (!$no_validate) {
420420
foreach my $f (@files) {
421-
my $error = validate_patch($f);
422-
$error and die "fatal: $f: $error\nwarning: no patches were sent\n";
421+
unless (-p $f) {
422+
my $error = validate_patch($f);
423+
$error and die "fatal: $f: $error\nwarning: no patches were sent\n";
424+
}
423425
}
424426
}
425427

0 commit comments

Comments
 (0)