Skip to content

Commit 8bd5a29

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1f5f8f3 commit 8bd5a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t6300-for-each-ref.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ test_atom refs/tags/signed-long contents "subject line
650650
body contents
651651
$sig"
652652

653-
cat >expected <<EOF
653+
sort >expected <<EOF
654654
$(git rev-parse refs/tags/bogo) <[email protected]> refs/tags/bogo
655655
$(git rev-parse refs/tags/master) <[email protected]> refs/tags/master
656656
EOF

0 commit comments

Comments
 (0)