diff options
author | Dale R. Worley <worley@alum.mit.edu> | 2013-07-12 10:58:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-12 10:30:08 -0700 |
commit | a2cb86c1524b7af20e609ca8d3db0b60b5c1d575 (patch) | |
tree | ca904b3742a076666a6dc1f726aa159368f57a35 /templates/hooks--commit-msg.sample | |
parent | git-config: update doc for --get with multiple values (diff) | |
download | tgif-a2cb86c1524b7af20e609ca8d3db0b60b5c1d575.tar.xz |
git_mkstemps: correctly test return value of open()
open() returns -1 on failure, and indeed 0 is a possible success value
if the user closed stdin in our process. Fix the test.
Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--commit-msg.sample')
0 files changed, 0 insertions, 0 deletions