Fossil SCM
If a "fossil sync" gets a 301 or 302 redirect, then change the saved remote URL to the redirected URL.
Commit
e0026b6e461331c45400e59debf19d3d43a09c6001ab6e77eef578a0368a339d
Parent
99ad7fc3f602830…
1 file changed
+1
+1
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -345,10 +345,11 @@ | ||
| 345 | 345 | transport_close(&g.url); |
| 346 | 346 | transport_global_shutdown(&g.url); |
| 347 | 347 | fSeenHttpAuth = 0; |
| 348 | 348 | if( g.zHttpAuth ) free(g.zHttpAuth); |
| 349 | 349 | g.zHttpAuth = get_httpauth(); |
| 350 | + url_remember(); | |
| 350 | 351 | return http_exchange(pSend, pReply, useLogin, maxRedirect); |
| 351 | 352 | }else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){ |
| 352 | 353 | if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){ |
| 353 | 354 | isCompressed = 0; |
| 354 | 355 | }else if( fossil_strnicmp(&zLine[14], |
| 355 | 356 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -345,10 +345,11 @@ | |
| 345 | transport_close(&g.url); |
| 346 | transport_global_shutdown(&g.url); |
| 347 | fSeenHttpAuth = 0; |
| 348 | if( g.zHttpAuth ) free(g.zHttpAuth); |
| 349 | g.zHttpAuth = get_httpauth(); |
| 350 | return http_exchange(pSend, pReply, useLogin, maxRedirect); |
| 351 | }else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){ |
| 352 | if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){ |
| 353 | isCompressed = 0; |
| 354 | }else if( fossil_strnicmp(&zLine[14], |
| 355 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -345,10 +345,11 @@ | |
| 345 | transport_close(&g.url); |
| 346 | transport_global_shutdown(&g.url); |
| 347 | fSeenHttpAuth = 0; |
| 348 | if( g.zHttpAuth ) free(g.zHttpAuth); |
| 349 | g.zHttpAuth = get_httpauth(); |
| 350 | url_remember(); |
| 351 | return http_exchange(pSend, pReply, useLogin, maxRedirect); |
| 352 | }else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){ |
| 353 | if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){ |
| 354 | isCompressed = 0; |
| 355 | }else if( fossil_strnicmp(&zLine[14], |
| 356 |