Browse Source

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>
maint
Michael J Gruber 14 years ago committed by Junio C Hamano
parent
commit
8ee5059488
  1. 15
      t/t6009-rev-list-parent.sh

15
t/t6009-rev-list-parent.sh

@ -4,25 +4,18 @@ test_description='properly cull all ancestors' @@ -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
'

Loading…
Cancel
Save