@matheusbsbs / matheus-bagliano / commits / 194264c185
Fork 0

t4054: make hash-size independent

Instead of hard-coding the length of an object ID when creating a tree, generate it based on $ZERO_OID. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Dec 21, 2019 at 19:49 UTC 194264c185515c67feed1972b735162c38054dbe
1 file changed +2 -1
t/t4054-diff-bogus-tree.sh
+2 -1
@@ -4,8 +4,9 @@ test_description='test diff with a bogus tree containing the null sha1'
4 . ./test-lib.sh
5
6 test_expect_success 'create bogus tree' '
7 + name=$(echo $ZERO_OID | sed -e "s/00/Q/g") &&
8 bogus_tree=$(
8 - printf "100644 fooQQQQQQQQQQQQQQQQQQQQQ" |
9 + printf "100644 fooQ$name" |
10 q_to_nul |
11 git hash-object -w --stdin -t tree
12 )