]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-push.c
travis-ci: build with GCC 4.8 as well
[thirdparty/git.git] / http-push.c
index f675a9631662ef5f6841b376e352b7b159e52e14..e36561a6db0752f12fe22883f81489d62d81a4ca 100644 (file)
@@ -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);
        }