summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85fe23e)
raw | patch | inline | side by side (parent: 85fe23e)
author | Kevin Ballard <kevin@sb.org> | |
Wed, 25 Jun 2008 22:44:40 +0000 (15:44 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 26 Jun 2008 05:34:20 +0000 (22:34 -0700) |
When a fifo is given, validation must be skipped because we can't
read the fifo twice. Ideally git-send-email would cache the read
data instead of attempting to read twice, but for now just skip
validation.
Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read the fifo twice. Ideally git-send-email would cache the read
data instead of attempting to read twice, but for now just skip
validation.
Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 0b04ba32f0399d338be587ac2d9ad4620705c9a1..16d437526afd9fe0cf7318d35bc40059522bd636 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);
- } elsif (-f $f) {
+ } elsif (-f $f or -p $f) {
push @files, $f;
} else {
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";
+ }
}
}