]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http.c
Merge branch 'jc/http-curlver-warnings'
[thirdparty/git.git] / http.c
diff --git a/http.c b/http.c
index 2214100e3b6688f79432cf8dc1a609e22f0ccf23..3dc8c560d65e7acebb22f63e797406e38afc6422 100644 (file)
--- a/http.c
+++ b/http.c
@@ -2461,7 +2461,7 @@ int finish_http_object_request(struct http_object_request *freq)
                unlink_or_warn(freq->tmpfile.buf);
                return -1;
        }
-       if (hashcmp(freq->sha1, freq->real_sha1)) {
+       if (!hasheq(freq->sha1, freq->real_sha1)) {
                unlink_or_warn(freq->tmpfile.buf);
                return -1;
        }