t6050: use git-update-ref rather than filesystem access
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Han-Wen Nienhuys committed
Aug 2, 2021 at 16:53 UTC
e6b0a8fab8e5a29f11faef898905e0b3c700e683
1 file changed
+1
-1
t/t6050-replace.sh
+1
-1
@@ -132,7 +132,7 @@ tagger T A Gger <> 0 +0000
132
EOF
133
134
test_expect_success 'tag replaced commit' '
135
- git mktag <tag.sig >.git/refs/tags/mytag
135
+ git update-ref refs/tags/mytag $(git mktag <tag.sig)
136
'
137
138
test_expect_success '"git fsck" works' '