summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2020-02-22 20:17:33 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-24 09:33:24 -0800
commit8bd5a2906ebca9e2d7fcecd1628c1585ffbd85d3 (patch)
treea46af0421c7eaebb9cdc760095465bfce54c3826
parentt6300: abstract away SHA-1-specific constants (diff)
downloadtgif-8bd5a2906ebca9e2d7fcecd1628c1585ffbd85d3.tar.xz
t6300: make hash algorithm independent
One of the git for-each-ref tests asks to sort by object ID. However, when sorted, the order of the refs differs between SHA-1 and SHA-256. Sort the expected output so that the test passes. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t6300-for-each-ref.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh
index 2406b93d35..b3c1092338 100755
--- a/t/t6300-for-each-ref.sh
+++ b/t/t6300-for-each-ref.sh
@@ -650,7 +650,7 @@ test_atom refs/tags/signed-long contents "subject line
body contents
$sig"
-cat >expected <<EOF
+sort >expected <<EOF
$(git rev-parse refs/tags/bogo) <committer@example.com> refs/tags/bogo
$(git rev-parse refs/tags/master) <committer@example.com> refs/tags/master
EOF