diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-07-08 23:53:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-07-08 23:53:11 +0200 |
commit | 125e38947087906be17fb4e237fc09764df97c65 (patch) | |
tree | d3a5a64bacceb6485f186f99048cce117de76dbc /bundle.c | |
parent | Merge branch 'ps/leakfixes-more' (diff) | |
parent | unbundle: extend object verification for fetches (diff) | |
download | git-125e38947087906be17fb4e237fc09764df97c65.tar.xz git-125e38947087906be17fb4e237fc09764df97c65.zip |
Merge branch 'xx/bundie-uri-fixes'
When bundleURI interface fetches multiple bundles, Git failed to
take full advantage of all bundles and ended up slurping duplicated
objects.
* xx/bundie-uri-fixes:
unbundle: extend object verification for fetches
fetch-pack: expose fsckObjects configuration logic
bundle-uri: verify oid before writing refs
Diffstat (limited to 'bundle.c')
-rw-r--r-- | bundle.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -636,6 +636,9 @@ int unbundle(struct repository *r, struct bundle_header *header, if (header->filter.choice) strvec_push(&ip.args, "--promisor=from-bundle"); + if (flags & VERIFY_BUNDLE_FSCK) + strvec_push(&ip.args, "--fsck-objects"); + if (extra_index_pack_args) { strvec_pushv(&ip.args, extra_index_pack_args->v); strvec_clear(extra_index_pack_args); |