Fossil

Check-in [e0026b6e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If a "fossil sync" gets a 301 or 302 redirect, then change the saved remote URL to the redirected URL.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e0026b6e461331c45400e59debf19d3d43a09c6001ab6e77eef578a0368a339d
User & Date: drh 2019-04-17 18:32:46.130
Context
2019-04-17
19:01
Issue a gentle warning, rather than a scary error message, if the autopush following a commit fails due to insufficient permissions. ... (check-in: 3350be2c user: drh tags: trunk)
18:32
If a "fossil sync" gets a 301 or 302 redirect, then change the saved remote URL to the redirected URL. ... (check-in: e0026b6e user: drh tags: trunk)
14:50
Applied a fix to fossil-autocomplete.bash posted on the forum, said to avoid adding a space to the end of an autocompleted path: https://fossil-scm.org/forum/forumpost/7ba4a4c495 ... (check-in: 99ad7fc3 user: wyoung tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/http.c.
343
344
345
346
347
348
349

350
351
352
353
354
355
356
      fossil_print("redirect with status %d to %s\n", rc, &zLine[i]);
      url_parse(&zLine[i], 0);
      transport_close(&g.url);
      transport_global_shutdown(&g.url);
      fSeenHttpAuth = 0;
      if( g.zHttpAuth ) free(g.zHttpAuth);
      g.zHttpAuth = get_httpauth();

      return http_exchange(pSend, pReply, useLogin, maxRedirect);
    }else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){
      if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){
        isCompressed = 0;
      }else if( fossil_strnicmp(&zLine[14],
                          "application/x-fossil-uncompressed", -1)==0 ){
        isCompressed = 0;







>







343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
      fossil_print("redirect with status %d to %s\n", rc, &zLine[i]);
      url_parse(&zLine[i], 0);
      transport_close(&g.url);
      transport_global_shutdown(&g.url);
      fSeenHttpAuth = 0;
      if( g.zHttpAuth ) free(g.zHttpAuth);
      g.zHttpAuth = get_httpauth();
      url_remember();
      return http_exchange(pSend, pReply, useLogin, maxRedirect);
    }else if( fossil_strnicmp(zLine, "content-type: ", 14)==0 ){
      if( fossil_strnicmp(&zLine[14], "application/x-fossil-debug", -1)==0 ){
        isCompressed = 0;
      }else if( fossil_strnicmp(&zLine[14],
                          "application/x-fossil-uncompressed", -1)==0 ){
        isCompressed = 0;