| # Copyright (c) 2007 Johannes E. Schindelin |
| test_description='git rev-list involving submodules that this repo has' |
| GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main |
| export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME |
| test_expect_success 'setup' ' |
| git commit -m second file && |
| git commit -m third file && |
| git submodule add "$(pwd)" sub && |
| git symbolic-ref HEAD refs/heads/super && |
| git commit -m super-initial && |
| git commit -m super-first super-file && |
| git commit -m super-second super-file |
| test_expect_success "Ilari's test" ' |
| git rev-list --objects super main ^super^ |