diff options
author | René Scharfe <l.s.r@web.de> | 2022-11-29 15:23:53 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-11-30 04:00:33 +0300 |
commit | 825babe5d5c720cb196f4f12c8eeb15fe00e95a1 (patch) | |
tree | e22d6958c4d81df1ec86534b1e944743488fc1ce /t/t5317-pack-objects-filter-objects.sh | |
parent | f00d81153336e1d560288c5f698aada3ca507dba (diff) |
pack-objects: fix handling of multiple --filter options
Since 5cb28270a1 (pack-objects: lazily set up "struct rev_info", don't
leak, 2022-03-28) --filter options given to git pack-objects overrule
earlier ones, letting only the leftmost win and leaking the memory
allocated for earlier ones. Fix that by only initializing the rev_info
struct once.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5317-pack-objects-filter-objects.sh')
-rwxr-xr-x | t/t5317-pack-objects-filter-objects.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5317-pack-objects-filter-objects.sh b/t/t5317-pack-objects-filter-objects.sh index 25faebaada..5b707d911b 100755 --- a/t/t5317-pack-objects-filter-objects.sh +++ b/t/t5317-pack-objects-filter-objects.sh @@ -265,7 +265,7 @@ test_expect_success 'verify normal and blob:limit packfiles have same commits/tr test_cmp expected observed ' -test_expect_failure 'verify small limit and big limit results in small limit' ' +test_expect_success 'verify small limit and big limit results in small limit' ' git -C r2 ls-files -s large.1000 >ls_files_result && test_parse_ls_files_stage_oids <ls_files_result | sort >expected && |