X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=receive-pack.c;h=0ca2a80bf00b76a2b07b749bb1ff7cb77d44f7ee;hb=4bea4b8451cd481a101fcf25583a270fe18371d3;hp=f5440ff4d439521edc39bc7a481911ebd7ce0d0c;hpb=28f72a0f232dfc71b3be726e7e71d0a6d5f9ebba;p=git.git diff --git a/receive-pack.c b/receive-pack.c index f5440ff4d..0ca2a80bf 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -138,6 +138,7 @@ static int run_hook(const char *hook_name) break; } } + close(proc.in); return hook_status(finish_command(&proc), hook_name); } @@ -424,6 +425,7 @@ static const char *unpack(void) if (start_command(&ip)) return "index-pack fork failed"; pack_lockfile = index_pack_lockfile(ip.out); + close(ip.out); status = finish_command(&ip); if (!status) { reprepare_packed_git();