]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6050: use git-update-ref rather than filesystem access
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 2 Aug 2021 16:53:26 +0000 (16:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2021 20:17:20 +0000 (13:17 -0700)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6050-replace.sh

index e33d512ec11e844147380cabbbada45e31e4d65b..2500acc2ef80f9679105adfa73a805d06e14180c 100755 (executable)
@@ -132,7 +132,7 @@ tagger T A Gger <> 0 +0000
 EOF
 
 test_expect_success 'tag replaced commit' '
-     git mktag <tag.sig >.git/refs/tags/mytag
+     git update-ref refs/tags/mytag $(git mktag <tag.sig)
 '
 
 test_expect_success '"git fsck" works' '