3 # Copyright (c) 2007 Johannes E. Schindelin
6 test_description
='git rev-list involving submodules that this repo has'
8 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
9 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 TEST_PASSES_SANITIZE_LEAK
=true
14 test_expect_success
'setup' '
18 git commit -m initial &&
21 git commit -m second file &&
24 git commit -m third file &&
30 git -c protocol.file.allow=always submodule add "$(pwd)" sub &&
31 git symbolic-ref HEAD refs/heads/super &&
33 git commit -m super-initial &&
34 echo 1 > super-file &&
36 git commit -m super-first super-file &&
37 echo 2 > super-file &&
39 git commit -m super-second super-file
42 test_expect_success
"Ilari's test" '
43 git rev-list --objects super main ^super^