]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-push.c
Merge branch 'gc/branch-recurse-submodules-fix'
[thirdparty/git.git] / http-push.c
index 3309aaf004a4db175bc4c0b94b5c63efebcb30e3..f0c044dcf7661a37b2a03f59e11f9e0bcefba0ea 100644 (file)
@@ -363,7 +363,7 @@ static void start_put(struct transfer_request *request)
        git_zstream stream;
 
        unpacked = read_object_file(&request->obj->oid, &type, &len);
-       hdrlen = xsnprintf(hdr, sizeof(hdr), "%s %"PRIuMAX , type_name(type), (uintmax_t)len) + 1;
+       hdrlen = format_object_header(hdr, sizeof(hdr), type, len);
 
        /* Set it up */
        git_deflate_init(&stream, zlib_compression_level);