X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=http-push.c;h=34cb70f90ea14a18848bd270463f5a34dc2c8fd3;hb=d35a42a62e6e710f34f0c6f81d3da644a7bbc2dd;hp=69200baf7651c2bcb99d6bc2068429e22865f900;hpb=eeb8e8373f68b706f5fc8a00760c3dedf239db70;p=~andy%2Fgit diff --git a/http-push.c b/http-push.c index 69200baf7..34cb70f90 100644 --- a/http-push.c +++ b/http-push.c @@ -1542,7 +1542,7 @@ static int remote_exists(const char *path) sprintf(url, "%s%s", repo->url, path); - switch (http_get_strbuf(url, NULL, NULL, 0)) { + switch (http_get_strbuf(url, NULL, NULL)) { case HTTP_OK: ret = 1; break; @@ -1566,7 +1566,7 @@ static void fetch_symref(const char *path, char **symref, unsigned char *sha1) url = xmalloc(strlen(repo->url) + strlen(path) + 1); sprintf(url, "%s%s", repo->url, path); - if (http_get_strbuf(url, NULL, &buffer, 0) != HTTP_OK) + if (http_get_strbuf(url, &buffer, NULL) != HTTP_OK) die("Couldn't get %s for remote symref\n%s", url, curl_errorstr); free(url);