Skip to content

Commit

Permalink
mktag tests: use "test_commit" helper
Browse files Browse the repository at this point in the history
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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
avar authored and gitster committed Jan 5, 2021
1 parent aba5377 commit b5ca549
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions t/t3800-mktag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
'

Expand Down

0 comments on commit b5ca549

Please sign in to comment.