diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2011-03-21 11:14:05 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-21 10:31:37 -0700 |
commit | 8ee50594889056322f2fc00a589a36e83b9119fd (patch) | |
tree | 70b40a2f4eb33651d63f1a9b2eb082f49821997b | |
parent | b1b47554ae889ca76b66349819c9b95a8be5f646 (diff) | |
download | git-8ee50594889056322f2fc00a589a36e83b9119fd.tar.gz |
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>
-rwxr-xr-x | t/t6009-rev-list-parent.sh | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/t/t6009-rev-list-parent.sh b/t/t6009-rev-list-parent.sh index 52f7b277ce..0f0e457730 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 ' |