Re: [PATCH 1/3] test-tool: add pack-deltas helper
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 24, 2025, 19:41 UTC
- Message-ID
- <xmqq34dxuz21.fsf@gitster.g>
- In-Reply-To
- <5d4beb202d6ed842de72928462a10a4f5faa2718.1745430004.git.gitgitgadget@gmail.com>
I needed this to make
$ SANITIZE=leak GIT_TEST_PASSING_SANITIZE_LEAK=true make $ cd t && sh t5309-pack-delta-cycles.sh
pass. --- >8 ------ >8 ------ >8 --- Subject: [PATCH] fixup! test-tool: add pack-deltas helper
t/helper/test-pack-deltas.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/helper/test-pack-deltas.c b/t/helper/test-pack-deltas.c index db7d1c3cd1..c8e837ea06 100644 --- a/t/helper/test-pack-deltas.c +++ b/t/helper/test-pack-deltas.c @@ -122,6 +122,7 @@ int cmd__pack_deltas(int argc, const char **argv) if (get_oid_hex(base_oid_str, &base_oid)) die("invalid object: %s", base_oid_str); } + string_list_clear(&items, 0); if (!strcmp(type_str, "REF_DELTA")) write_ref_delta(f, &content_oid, &base_oid);
-- 2.49.0-555-g43235db9c8