Skip to content

Commit

Permalink
t6009: use test_commit() from test-lib.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael J Gruber authored and Junio C Hamano committed Mar 21, 2011
1 parent b1b4755 commit 8ee5059
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions t/t6009-rev-list-parent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'
Expand Down

0 comments on commit 8ee5059

Please sign in to comment.