t6009: use test_commit() from test-lib.sh

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michael J Gruber 2011-03-21 11:14:05 +01:00 committed by Junio C Hamano
parent b1b47554ae
commit 8ee5059488

View File

@ -4,25 +4,18 @@ test_description='properly cull all ancestors'
. ./test-lib.sh . ./test-lib.sh
commit () {
test_tick &&
echo $1 >file &&
git commit -a -m $1 &&
git tag $1
}
test_expect_success setup ' test_expect_success setup '
touch file && touch file &&
git add file && git add file &&
commit one && test_commit one &&
test_tick=$(($test_tick - 2400)) && test_tick=$(($test_tick - 2400)) &&
commit two && test_commit two &&
commit three && test_commit three &&
commit four && test_commit four &&
git log --pretty=oneline --abbrev-commit git log --pretty=oneline --abbrev-commit
' '