t7700: have closing quote of a test at the beginning of line
[gitweb.git] / http-push.c
index 97fe22a7050474d2bc48ca0d483c10c6de92988d..c0998fd763b6178aa7c0d35603c9b56183d5157f 100644 (file)
@@ -362,8 +362,8 @@ static void start_put(struct transfer_request *request)
        ssize_t size;
        git_zstream stream;
 
-       unpacked = read_sha1_file(request->obj->oid.hash, &type, &len);
-       hdrlen = xsnprintf(hdr, sizeof(hdr), "%s %lu", typename(type), len) + 1;
+       unpacked = read_object_file(&request->obj->oid, &type, &len);
+       hdrlen = xsnprintf(hdr, sizeof(hdr), "%s %lu", type_name(type), len) + 1;
 
        /* Set it up */
        git_deflate_init(&stream, zlib_compression_level);