@matheusbsbs / matheus-bagliano / commits / 8bd5a2906e
Fork 0

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>

brian m. carlson committed Feb 22, 2020 at 20:17 UTC 8bd5a2906ebca9e2d7fcecd1628c1585ffbd85d3
1 file changed +1 -1
t/t6300-for-each-ref.sh
+1 -1
@@ -650,7 +650,7 @@ test_atom refs/tags/signed-long contents "subject line
650 body contents
651 $sig"
652
653 -cat >expected <<EOF
653 +sort >expected <<EOF
654 $(git rev-parse refs/tags/bogo) <committer@example.com> refs/tags/bogo
655 $(git rev-parse refs/tags/master) <committer@example.com> refs/tags/master
656 EOF