]> git.ipfire.org Git - thirdparty/git.git/commit
http: avoid closing index-pack input twice
authorTed Nyman <tnyman@openai.com>
Mon, 27 Jul 2026 00:28:39 +0000 (17:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jul 2026 19:57:20 +0000 (12:57 -0700)
commitf0d866a2eafcd012fb8fda8edd6b32da68859d7b
tree2922f5f9f629726826f1d5c938468b2f347fe371
parentc71ed75a8b1d59793e033407cf38b03ddc1d0179
http: avoid closing index-pack input twice

finish_http_pack_request() passes its staging-file descriptor to
index-pack through child_process.in. start_command() takes ownership
of a supplied descriptor and closes it, even when starting the child
fails.

Do not close the descriptor again after run_command() returns.

Signed-off-by: Ted Nyman <tnyman@openai.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c