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
13 test_expect_success
'setup' '
17 git commit -m initial &&
20 git commit -m second file &&
23 git commit -m third file &&
29 git submodule add "$(pwd)" sub &&
30 git symbolic-ref HEAD refs/heads/super &&
32 git commit -m super-initial &&
33 echo 1 > super-file &&
35 git commit -m super-first super-file &&
36 echo 2 > super-file &&
38 git commit -m super-second super-file
41 test_expect_success
"Ilari's test" '
42 git rev-list --objects super main ^super^