Merge branch 'nd/help-commands-verbose-by-default'
[gitweb.git] / http-walker.c
index 3a8edc7f2fd47718f0a5d257d005e78e08d7d21c..b3334bf657b5ea64e779eb470525eb0b7337baa9 100644 (file)
@@ -543,7 +543,7 @@ static int fetch_object(struct walker *walker, unsigned char *sha1)
        } else if (req->zret != Z_STREAM_END) {
                walker->corrupt_object_found++;
                ret = error("File %s (%s) corrupt", hex, req->url);
-       } else if (hashcmp(obj_req->oid.hash, req->real_sha1)) {
+       } else if (!hasheq(obj_req->oid.hash, req->real_sha1)) {
                ret = error("File %s has bad hash", hex);
        } else if (req->rename < 0) {
                struct strbuf buf = STRBUF_INIT;