]> git.ipfire.org Git - thirdparty/git.git/commit
fetch-pack: accept "pack" output for packfile URIs
authorTed Nyman <tnyman@openai.com>
Mon, 27 Jul 2026 00:28:43 +0000 (17:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jul 2026 19:57:20 +0000 (12:57 -0700)
commitc4244bdfe6d28ed552e10f1e37387978549b36ed
tree8e39678706e9c0026028ebf1e31f2113dc7eba54
parente92a518a741ead85634c43f871e7e095bcf66f1f
fetch-pack: accept "pack" output for packfile URIs

When index-pack finds an existing keep file it reports pack rather than
keep. Accept either result from http-fetch, and only register a keep
lockfile when this fetch created it.

Read the pack/keep prefix and hash without consuming any following fsck
output, validate the reported pack hash against the advertised hash, and
exercise a packfile URI fetch with a pre-existing keep file.

Signed-off-by: Ted Nyman <tnyman@openai.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c
t/t5702-protocol-v2.sh