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>
Michael J Gruber committed
Mar 21, 2011 at 11:14 UTC
8ee50594889056322f2fc00a589a36e83b9119fd
1 file changed
+4
-11
t/t6009-rev-list-parent.sh
+4
-11
@@ -4,25 +4,18 @@ test_description='properly cull all ancestors'
4
5
. ./test-lib.sh
6
7
-commit () {
8
- test_tick &&
9
- echo $1 >file &&
10
- git commit -a -m $1 &&
11
- git tag $1
12
-}
13
-
7
test_expect_success setup '
8
9
touch file &&
10
git add file &&
11
19
- commit one &&
12
+ test_commit one &&
13
14
test_tick=$(($test_tick - 2400)) &&
15
23
- commit two &&
24
- commit three &&
25
- commit four &&
16
+ test_commit two &&
17
+ test_commit three &&
18
+ test_commit four &&
19
20
git log --pretty=oneline --abbrev-commit
21
'