Skip to content

Commit d1e9900

Browse files
gitsterdscho
authored andcommitted
fixup! test-tool: add pack-deltas helper
Junio says in https://lore.kernel.org/git/[email protected]: > I needed this to make > > $ SANITIZE=leak GIT_TEST_PASSING_SANITIZE_LEAK=true make > $ cd t && sh t5309-pack-delta-cycles.sh > > pass. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f64bf3b commit d1e9900

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/helper/test-pack-deltas.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ int cmd__pack_deltas(int argc, const char **argv)
122122
if (get_oid_hex(base_oid_str, &base_oid))
123123
die("invalid object: %s", base_oid_str);
124124
}
125+
string_list_clear(&items, 0);
125126

126127
if (!strcmp(type_str, "REF_DELTA"))
127128
write_ref_delta(f, &content_oid, &base_oid);

0 commit comments

Comments
 (0)