X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=http-push.c;h=e36561a6db0752f12fe22883f81489d62d81a4ca;hb=fb9d7431cf4c4d4d90ad2d2904c7feb19dfb2f8f;hp=f675a9631662ef5f6841b376e352b7b159e52e14;hpb=cfd635c7428dfca5b45d8d45fdc1311e751d4fe2;p=thirdparty%2Fgit.git diff --git a/http-push.c b/http-push.c index f675a96316..e36561a6db 100644 --- a/http-push.c +++ b/http-push.c @@ -526,8 +526,8 @@ static void finish_request(struct transfer_request *request) if (request->headers != NULL) curl_slist_free_all(request->headers); - /* URL is reused for MOVE after PUT */ - if (request->state != RUN_PUT) { + /* URL is reused for MOVE after PUT and used during FETCH */ + if (request->state != RUN_PUT && request->state != RUN_FETCH_PACKED) { FREE_AND_NULL(request->url); }