We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74c3664 + 300913b commit f7c3cf8Copy full SHA for f7c3cf8
git-send-email.perl
@@ -408,7 +408,7 @@ sub read_config {
408
push @files, grep { -f $_ } map { +$f . "/" . $_ }
409
sort readdir(DH);
410
411
- } elsif (-f $f) {
+ } elsif (-f $f or -p $f) {
412
push @files, $f;
413
414
} else {
@@ -418,8 +418,10 @@ sub read_config {
418
419
if (!$no_validate) {
420
foreach my $f (@files) {
421
- my $error = validate_patch($f);
422
- $error and die "fatal: $f: $error\nwarning: no patches were sent\n";
+ unless (-p $f) {
+ my $error = validate_patch($f);
423
+ $error and die "fatal: $f: $error\nwarning: no patches were sent\n";
424
+ }
425
}
426
427
0 commit comments