]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4054-diff-bogus-tree.sh
t4054: make hash-size independent
[thirdparty/git.git] / t / t4054-diff-bogus-tree.sh
index fcae82fffa7f74a65fc6b475cc5c3eeefda3029a..8c95f152b23b242df5f5aaa0b5b25e6e1826f753 100755 (executable)
@@ -4,8 +4,9 @@ test_description='test diff with a bogus tree containing the null sha1'
 . ./test-lib.sh
 
 test_expect_success 'create bogus tree' '
+       name=$(echo $ZERO_OID | sed -e "s/00/Q/g") &&
        bogus_tree=$(
-               printf "100644 fooQQQQQQQQQQQQQQQQQQQQQ" |
+               printf "100644 fooQ$name" |
                q_to_nul |
                git hash-object -w --stdin -t tree
        )