about summary refs log tree commit diff
path: root/third_party/git/t/t0002-gitfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t0002-gitfile.sh')
-rwxr-xr-xthird_party/git/t/t0002-gitfile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/git/t/t0002-gitfile.sh b/third_party/git/t/t0002-gitfile.sh
index 0aa9908ea12d..960ed150cb59 100755
--- a/third_party/git/t/t0002-gitfile.sh
+++ b/third_party/git/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)"
 '