Skip to content

Commit

Permalink
Merge branch 'kb/send-email-fifo'
Browse files Browse the repository at this point in the history
* kb/send-email-fifo:
  git-send-email: Accept fifos as well as files
  • Loading branch information
Junio C Hamano committed Jul 1, 2008
2 parents 74c3664 + 300913b commit f7c3cf8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ sub read_config {
push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);

} elsif (-f $f) {
} elsif (-f $f or -p $f) {
push @files, $f;

} else {
Expand All @@ -418,8 +418,10 @@ sub read_config {

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";
}
}
}

Expand Down

0 comments on commit f7c3cf8

Please sign in to comment.