X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=receive-pack.c;h=a971433db155bbac162cece038b73dc64e682ac0;hb=3449f8c4cb93a0ec445db22ee7549d0b051446d6;hp=326749583221d0f5e81f58608a23ab1dc1601177;hpb=cab31fa076253fcfafa7572c24e40f12a1e09ae3;p=git.git diff --git a/receive-pack.c b/receive-pack.c index 326749583..a971433db 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -132,6 +132,7 @@ static int run_hook(const char *hook_name) break; } } + close(proc.in); return hook_status(finish_command(&proc), hook_name); } @@ -414,6 +415,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();