diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2020-05-20 17:36:08 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-20 10:39:01 -0700 |
commit | cdb73ca56f21835b93345442a96c97f6a0589ef7 (patch) | |
tree | ff5bb46f3348f16a57ae4c949105d6298b9ec6a8 /t/t1506-rev-parse-diagnosis.sh | |
parent | refs.h: clarify reflog iteration order (diff) | |
download | tgif-cdb73ca56f21835b93345442a96c97f6a0589ef7.tar.xz |
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>
Diffstat (limited to 't/t1506-rev-parse-diagnosis.sh')
-rwxr-xr-x | t/t1506-rev-parse-diagnosis.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1506-rev-parse-diagnosis.sh b/t/t1506-rev-parse-diagnosis.sh index 52edcbdcc3..dbf690b9c1 100755 --- a/t/t1506-rev-parse-diagnosis.sh +++ b/t/t1506-rev-parse-diagnosis.sh @@ -207,7 +207,7 @@ test_expect_success 'arg before dashdash must be a revision (ambiguous)' ' { # we do not want to use rev-parse here, because # we are testing it - cat .git/refs/heads/foobar && + git show-ref -s refs/heads/foobar && printf "%s\n" -- } >expect && git rev-parse foobar -- >actual && |