[v6,07/39] t6301: make hash size independent
diff mbox series

Message ID 20200729231428.3658647-8-sandals@crustytoothpaste.net
State New
Headers show
  • SHA-256, part 3/3
Related show

Commit Message

brian m. carlson July 29, 2020, 11:13 p.m. UTC
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

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
 t/t6301-for-each-ref-errors.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/t/t6301-for-each-ref-errors.sh b/t/t6301-for-each-ref-errors.sh
index 49cc65bb58..809854fc0c 100755
--- a/t/t6301-for-each-ref-errors.sh
+++ b/t/t6301-for-each-ref-errors.sh
@@ -5,9 +5,9 @@  test_description='for-each-ref errors for broken refs'
 . ./test-lib.sh
 test_expect_success setup '
+	MISSING=$(test_oid deadbeef) &&
 	git commit --allow-empty -m "Initial" &&
 	git tag testtag &&
 	git for-each-ref >full-list &&