Fix confusing git-update-ref error message
[gitweb.git] / t / t6003-rev-list-topo-order.sh
index 88d14ee1a3419f06c45a30e42a79934c4284c465..3c4c44c24d0781a1f876e7d4d016bf95f070e232 100755 (executable)
@@ -77,7 +77,7 @@ save_tag h2 unique_commit g4 tree -p g2
 save_tag g3 unique_commit g5 tree -p g2
 save_tag g4 unique_commit g6 tree -p g3 -p h2
 
-tag l5 > .git/HEAD
+git-update-ref HEAD $(tag l5)
 
 test_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -s " "' <<EOF
 19