sha1-file: modernize loose object file functions
[gitweb.git] / http-walker.c
index 856716c63d0c1c806b63ec3f8c655b43fc23a403..29b59e2fe0be45d9c1d4d439062fc54bda370f42 100644 (file)
@@ -547,7 +547,7 @@ static int fetch_object(struct walker *walker, unsigned char *sha1)
                ret = error("File %s has bad hash", hex);
        } else if (req->rename < 0) {
                struct strbuf buf = STRBUF_INIT;
-               loose_object_path(the_repository, &buf, req->oid.hash);
+               loose_object_path(the_repository, &buf, &req->oid);
                ret = error("unable to write sha1 filename %s", buf.buf);
                strbuf_release(&buf);
        }