diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2013-01-31 10:18:40 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-31 11:10:44 -0800 |
commit | 7dac3f83218b9f6c4c7d1c1cf093190f20d27108 (patch) | |
tree | 7c70a82ddb09f2d9b5aa4b2ba26061efd4759f74 /git-stash.sh | |
parent | Split GPG interface into its own helper library (diff) | |
download | tgif-7dac3f83218b9f6c4c7d1c1cf093190f20d27108.tar.xz |
gpg: close stderr once finished with it in verify_signed_buffer()
Failing to close the stderr pipe in verify_signed_buffer() causes
git to run out of file descriptors if there are many calls to
verify_signed_buffer(). An easy way to trigger this is to run
git log --show-signature --merges | grep "key"
on the linux kernel git repo. Eventually it will fail with
error: cannot create pipe for gpg: Too many open files
error: could not run gpg.
Close the stderr pipe so that this can't happen.
Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
0 files changed, 0 insertions, 0 deletions