mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
ab1f6926e9
Clear the "boundary_commits" object_array in release_revisions(). This makes a few more tests pass under SANITIZE=leak, including "t/t4126-apply-empty.sh" which started failed as an UNLEAK() in cmd_format_patch() was removed in a preceding commit. This also re-marks the various tests relying on "git format-patch" as passing under "SANITIZE=leak", in the preceding "revisions API users: use release_revisions() in builtin/log.c" commit those were marked as failing as we removed the UNLEAK(rev) from cmd_format_patch() in "builtin/log.c". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
25 lines
500 B
Bash
Executable File
25 lines
500 B
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='operations that cull histories in unusual ways'
|
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
|
|
|
TEST_PASSES_SANITIZE_LEAK=true
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success setup '
|
|
test_commit A &&
|
|
test_commit B &&
|
|
test_commit C &&
|
|
git checkout -b side HEAD^ &&
|
|
test_commit D &&
|
|
test_commit E &&
|
|
git merge main
|
|
'
|
|
|
|
test_expect_success 'rev-list --first-parent --boundary' '
|
|
git rev-list --first-parent --boundary HEAD^..
|
|
'
|
|
|
|
test_done
|