Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-01-05 22:42:34 +0300
committerJunio C Hamano <gitster@pobox.com>2021-01-06 01:58:28 +0300
commitb5ca549c932a2818869dba7cc7c60a8ec5946a8d (patch)
tree07f16536aa0b4fdbbf8f504de49c8713b69bfbc1 /t/t3800-mktag.sh
parentaba5377f693df650879a23ae549ca458ff116965 (diff)
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>
Diffstat (limited to 't/t3800-mktag.sh')
-rwxr-xr-xt/t3800-mktag.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh
index 0e411e3c45..dd21a1247a 100755
--- a/t/t3800-mktag.sh
+++ b/t/t3800-mktag.sh
@@ -23,9 +23,7 @@ check_verify_failure () {
# first create a commit, so we have a valid object/type
# for the tag.
test_expect_success 'setup' '
- echo Hello >A &&
- git update-index --add A &&
- git commit -m "Initial commit" &&
+ test_commit A &&
head=$(git rev-parse --verify HEAD)
'