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 <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
brian m. carlson committed
Jul 29, 2020 at 23:13 UTC
abe3db14cba119d8a91e40f1f77233d6a9c8037b
1 file changed
+1
-1
t/t6301-for-each-ref-errors.sh
+1
-1
@@ -5,9 +5,9 @@ test_description='for-each-ref errors for broken refs'
5
. ./test-lib.sh
6
7
ZEROS=$ZERO_OID
8
-MISSING=abababababababababababababababababababab
8
9
test_expect_success setup '
10
+ MISSING=$(test_oid deadbeef) &&
11
git commit --allow-empty -m "Initial" &&
12
git tag testtag &&
13
git for-each-ref >full-list &&