Merge branch 'ao/send-email-irt'
[git/kirr.git] / t / t6008-rev-list-submodule.sh
blobc4af9ca0a7edf6230dc6ca8ec10848545971fce7
1 #!/bin/sh
3 # Copyright (c) 2007 Johannes E. Schindelin
6 test_description='git rev-list involving submodules that this repo has'
8 . ./test-lib.sh
10 test_expect_success 'setup' '
11 : > file &&
12 git add file &&
13 test_tick &&
14 git commit -m initial &&
15 echo 1 > file &&
16 test_tick &&
17 git commit -m second file &&
18 echo 2 > file &&
19 test_tick &&
20 git commit -m third file &&
22 rm .git/index &&
24 : > super-file &&
25 git add super-file &&
26 git submodule add "$(pwd)" sub &&
27 git symbolic-ref HEAD refs/heads/super &&
28 test_tick &&
29 git commit -m super-initial &&
30 echo 1 > super-file &&
31 test_tick &&
32 git commit -m super-first super-file &&
33 echo 2 > super-file &&
34 test_tick &&
35 git commit -m super-second super-file
38 test_expect_success "Ilari's test" '
39 git rev-list --objects super master ^super^
42 test_done