summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-10-15 18:27:33 -0400
committerJunio C Hamano <gitster@pobox.com>2025-10-16 10:08:53 -0700
commit3758052c0f43fd01d25fc7381c7939daba66c015 (patch)
tree78d07f09d5bb03a47e66da3feb9144e5e6ed6900 /contrib/persistent-https
parentcae9e2abbd8fb2fd483e101275cee15ef27d5953 (diff)
downloadgit-3758052c0f43fd01d25fc7381c7939daba66c015.tar.gz
git-3758052c0f43fd01d25fc7381c7939daba66c015.zip
builtin/repack.c: avoid "the_hash_algo" when deleting packs
The "mark_packs_for_deletion_1" function uses "the_hash_algo->hexsz" to isolate a pack's checksum before deleting it to avoid deleting a newly written pack having the same checksum (that is, some generated pack wound up identical to an existing pack). Avoid this by passing down a "struct git_hash_algo" pointer, and refer to the hash algorithm through it instead. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions