Skip to content

Commit abe3db1

Browse files
bk2204gitster
authored andcommitted
t6301: make hash size independent
Instead of hard-coding a fixed length example object ID in the test, compute one using the translation tables. Move a variable into the setup block so that we can ensure the exit status of test_oid is checked. Signed-off-by: brian m. carlson <[email protected]> Reviewed-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 08fbc5d commit abe3db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t6301-for-each-ref-errors.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ test_description='for-each-ref errors for broken refs'
55
. ./test-lib.sh
66

77
ZEROS=$ZERO_OID
8-
MISSING=abababababababababababababababababababab
98

109
test_expect_success setup '
10+
MISSING=$(test_oid deadbeef) &&
1111
git commit --allow-empty -m "Initial" &&
1212
git tag testtag &&
1313
git for-each-ref >full-list &&

0 commit comments

Comments
 (0)