0f0e45773095f713245092cd94e8e7042a939185
1#!/bin/sh
2
3test_description='properly cull all ancestors'
4
5. ./test-lib.sh
6
7test_expect_success setup '
8
9 touch file &&
10 git add file &&
11
12 test_commit one &&
13
14 test_tick=$(($test_tick - 2400)) &&
15
16 test_commit two &&
17 test_commit three &&
18 test_commit four &&
19
20 git log --pretty=oneline --abbrev-commit
21'
22
23test_expect_success 'one is ancestor of others and should not be shown' '
24
25 git rev-list one --not four >result &&
26 >expect &&
27 test_cmp expect result
28
29'
30
31test_done