Skip to content

Commit b5ca549

Browse files
avargitster
authored andcommitted
mktag tests: use "test_commit" helper
Replace ad-hoc setup of a single commit in the "mktag" tests with our standard helper pattern. The old setup dated back to 446c6fa (New tests and en-passant modifications to mktag., 2006-07-29) before the helper existed. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent aba5377 commit b5ca549

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

t/t3800-mktag.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ check_verify_failure () {
2323
# first create a commit, so we have a valid object/type
2424
# for the tag.
2525
test_expect_success 'setup' '
26-
echo Hello >A &&
27-
git update-index --add A &&
28-
git commit -m "Initial commit" &&
26+
test_commit A &&
2927
head=$(git rev-parse --verify HEAD)
3028
'
3129

0 commit comments

Comments
 (0)