diff --git a/receive-pack.c b/receive-pack.c
index f5440ff4d439521edc39bc7a481911ebd7ce0d0c..0ca2a80bf00b76a2b07b749bb1ff7cb77d44f7ee 100644 (file)
--- a/receive-pack.c
+++ b/receive-pack.c
break;
}
}
+ close(proc.in);
return hook_status(finish_command(&proc), hook_name);
}
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();