Linus Torvalds | 4d1012c | 2007-11-11 23:35:23 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copyright (c) 2007 Johannes E. Schindelin |
| 4 | # |
| 5 | |
| 6 | test_description='git rev-list involving submodules that this repo has' |
| 7 | |
| 8 | . ./test-lib.sh |
| 9 | |
| 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 && |
| 21 | |
| 22 | rm .git/index && |
| 23 | |
| 24 | : > super-file && |
| 25 | git add super-file && |
Mark Levedahl | ec05df3 | 2008-07-09 21:05:40 -0400 | [diff] [blame] | 26 | git submodule add "$(pwd)" sub && |
Linus Torvalds | 4d1012c | 2007-11-11 23:35:23 +0000 | [diff] [blame] | 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 |
| 36 | ' |
| 37 | |
| 38 | test_expect_success "Ilari's test" ' |
| 39 | git rev-list --objects super master ^super^ |
| 40 | ' |
| 41 | |
| 42 | test_done |