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 446c6faec69 (New tests and en-passant modifications to mktag., 2006-07-29) before the helper existed. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Jan 5, 2021 at 20:42 UTC b5ca549c932a2818869dba7cc7c60a8ec5946a8d
1 file changed +1 -3
t/t3800-mktag.sh
+1 -3
@@ -23,9 +23,7 @@ check_verify_failure () {
23 # first create a commit, so we have a valid object/type
24 # for the tag.
25 test_expect_success 'setup' '
26 - echo Hello >A &&
27 - git update-index --add A &&
28 - git commit -m "Initial commit" &&
26 + test_commit A &&
27 head=$(git rev-parse --verify HEAD)
28 '
29