aboutsummaryrefslogtreecommitdiffstats
path: root/t/t0002-gitfile.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-06-12 13:57:13 -0700
committerJunio C Hamano <gitster@pobox.com>2020-06-12 13:57:13 -0700
commiteebb51ba8cab97c0b3f3f18eaab7796803b8494b (patch)
tree7849618c1d315d5e603a34c0d8b1cb6337b6e680 /t/t0002-gitfile.sh
parent0313f36c6ebecb3bffe6f15cf25a4883100f0214 (diff)
parentee9681d94960e075f310ce8276539aa3169fd152 (diff)
downloadgit-eebb51ba8cab97c0b3f3f18eaab7796803b8494b.tar.gz
Merge branch 'hn/refs-cleanup'
Preliminary clean-ups around refs API, plus file format specification documentation for the reftable backend. * hn/refs-cleanup: reftable: define version 2 of the spec to accomodate SHA256 reftable: clarify how empty tables should be written reftable: file format documentation refs: improve documentation for ref iterator t: use update-ref and show-ref to reading/writing refs refs.h: clarify reflog iteration order
Diffstat (limited to 't/t0002-gitfile.sh')
-rwxr-xr-xt/t0002-gitfile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0002-gitfile.sh b/t/t0002-gitfile.sh
index 0aa9908ea1..960ed150cb 100755
--- a/t/t0002-gitfile.sh
+++ b/t/t0002-gitfile.sh
@@ -62,7 +62,7 @@ test_expect_success 'check commit-tree' '
'
test_expect_success 'check rev-list' '
- echo $SHA >"$REAL/HEAD" &&
+ git update-ref "HEAD" "$SHA" &&
test "$SHA" = "$(git rev-list HEAD)"
'