From: Michael J Gruber Date: Mon, 21 Mar 2011 10:14:05 +0000 (+0100) Subject: t6009: use test_commit() from test-lib.sh X-Git-Tag: v1.7.5-rc0~15^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8ee50594889056322f2fc00a589a36e83b9119fd;p=git.git t6009: use test_commit() from test-lib.sh Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- diff --git a/t/t6009-rev-list-parent.sh b/t/t6009-rev-list-parent.sh index 52f7b277c..0f0e45773 100755 --- a/t/t6009-rev-list-parent.sh +++ b/t/t6009-rev-list-parent.sh @@ -4,25 +4,18 @@ 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_commit one && test_tick=$(($test_tick - 2400)) && - commit two && - commit three && - commit four && + test_commit two && + test_commit three && + test_commit four && git log --pretty=oneline --abbrev-commit '