allow git-am to run in a subdirectory
[git/peff.git] / t / t6009-rev-list-parent.sh
blobbe3d238d996fed911d6098fad01ca25345059da6
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
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
30 test_expect_failure 'one is ancestor of others and should not be shown' '
32 git rev-list one --not four >result &&
33 >expect &&
34 diff -u expect result
38 test_done