t: use update-ref and show-ref to reading/writing refs

Reading and writing .git/refs/* assumes that refs are stored in the 'files'
ref backend.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Han-Wen Nienhuys
2020-05-20 17:36:08 +00:00
committed by Junio C Hamano
parent d1eb22da09
commit cdb73ca56f
5 changed files with 21 additions and 21 deletions

View File

@ -48,8 +48,8 @@ test_expect_success REMOTE_SVN 'simple fetch' '
'
test_debug '
cat .git/refs/svn/svnsim/master
cat .git/refs/remotes/svnsim/master
git show-ref -s refs/svn/svnsim/master
git show-ref -s refs/remotes/svnsim/master
'
test_expect_success REMOTE_SVN 'repeated fetch, nothing shall change' '