Code

fast-import: don't allow 'ls' of path with empty components
[git.git] / t / t6009-rev-list-parent.sh
1 #!/bin/sh
3 test_description='properly cull all ancestors'
5 . ./test-lib.sh
7 commit () {
8         test_tick &&
9         echo $1 >file &&
10         git commit -a -m $1 &&
11         git tag $1
12 }
14 test_expect_success setup '
16         touch file &&
17         git add file &&
19         commit one &&
21         test_tick=$(($test_tick - 2400)) &&
23         commit two &&
24         commit three &&
25         commit four &&
27         git log --pretty=oneline --abbrev-commit
28 '
30 test_expect_success 'one is ancestor of others and should not be shown' '
32         git rev-list one --not four >result &&
33         >expect &&
34         test_cmp expect result
36 '
38 test_done