]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5562-http-backend-content-length.sh
Merge branch 'bc/sha-256-part-2'
[thirdparty/git.git] / t / t5562-http-backend-content-length.sh
index 3f4ac71f83b571a61c14b5627d843b73cb244f0e..c6ec625497db44eb6a04d8b6a91e3cf99fe86a02 100755 (executable)
@@ -46,6 +46,7 @@ ssize_b100dots() {
 }
 
 test_expect_success 'setup' '
+       test_oid_init &&
        HTTP_CONTENT_ENCODING="identity" &&
        export HTTP_CONTENT_ENCODING &&
        git config http.receivepack true &&
@@ -62,8 +63,8 @@ test_expect_success 'setup' '
        test_copy_bytes 10 <fetch_body >fetch_body.trunc &&
        hash_next=$(git commit-tree -p HEAD -m next HEAD^{tree}) &&
        {
-               printf "%s %s refs/heads/newbranch\\0report-status\\n" \
-                       "$ZERO_OID" "$hash_next" | packetize &&
+               printf "%s %s refs/heads/newbranch\\0report-status object-format=%s\\n" \
+                       "$ZERO_OID" "$hash_next" "$(test_oid algo)" | packetize &&
                printf 0000 &&
                echo "$hash_next" | git pack-objects --stdout
        } >push_body &&