You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
530 B
39 lines
530 B
17 years ago
|
#!/bin/sh
|
||
|
|
||
|
test_description='properly cull all ancestors'
|
||
|
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
commit () {
|
||
|
test_tick &&
|
||
|
echo $1 >file &&
|
||
|
git commit -a -m $1 &&
|
||
|
git tag $1
|
||
|
}
|
||
|
|
||
|
test_expect_success setup '
|
||
|
|
||
|
touch file &&
|
||
|
git add file &&
|
||
|
|
||
|
commit one &&
|
||
|
|
||
|
test_tick=$(($test_tick - 2400))
|
||
|
|
||
|
commit two &&
|
||
|
commit three &&
|
||
|
commit four &&
|
||
|
|
||
|
git log --pretty=oneline --abbrev-commit
|
||
|
'
|
||
|
|
||
|
test_expect_failure 'one is ancestor of others and should not be shown' '
|
||
|
|
||
|
git rev-list one --not four >result &&
|
||
|
>expect &&
|
||
|
diff -u expect result
|
||
|
|
||
|
'
|
||
|
|
||
|
test_done
|