aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-11-02 00:15:22 -0700
committerJunio C Hamano <gitster@pobox.com>2008-11-02 00:15:22 -0700
commitaebd173ffa7a4e67447f0157a14abde7767c54e9 (patch)
tree2c3c660e441d93120a42cfac5c909dcbd2f5b275 /git-send-email.perl
parentf6576f4c0c6fa3b2d979faf28936c09480dedaab (diff)
parent1a9016aae5aa8c468bb2d8d5dd16303d5c005869 (diff)
downloadgit-aebd173ffa7a4e67447f0157a14abde7767c54e9.tar.gz
git-aebd173ffa7a4e67447f0157a14abde7767c54e9.tar.xz
Merge branch 'maint'
* maint: Start 1.6.0.4 cycle add instructions on how to send patches to the mailing list with Gmail Documentation/gitattributes: Add subsection header for each attribute git send-email: avoid leaking directory file descriptors. send-pack: do not send out single-level refs such as refs/stash fix overlapping memcpy in normalize_absolute_path pack-objects: avoid reading uninitalized data correct cache_entry allocation Conflicts: RelNotes
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index bdbfac662..94ca5c89a 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -374,10 +374,9 @@ for my $f (@ARGV) {
push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);
-
+ closedir(DH);
} elsif (-f $f or -p $f) {
push @files, $f;
-
} else {
print STDERR "Skipping $f - not found.\n";
}