]> git.ipfire.org Git - thirdparty/git.git/blame - t/t6009-rev-list-parent.sh
known breakage: revision range computation with clock skew
[thirdparty/git.git] / t / t6009-rev-list-parent.sh
CommitLineData
991c3dc7
JH
1#!/bin/sh
2
3test_description='properly cull all ancestors'
4
5. ./test-lib.sh
6
7commit () {
8 test_tick &&
9 echo $1 >file &&
10 git commit -a -m $1 &&
11 git tag $1
12}
13
14test_expect_success setup '
15
16 touch file &&
17 git add file &&
18
19 commit one &&
20
21 test_tick=$(($test_tick - 2400))
22
23 commit two &&
24 commit three &&
25 commit four &&
26
27 git log --pretty=oneline --abbrev-commit
28'
29
30test_expect_failure 'one is ancestor of others and should not be shown' '
31
32 git rev-list one --not four >result &&
33 >expect &&
34 diff -u expect result
35
36'
37
38test_done