Fossil

Check-in [857777f1]
Login

Check-in [857777f1]

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

Overview
Comment:Fix the "fossil clone" command so that it works again after the addition of the ability to support multiple remotes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 857777f117eb0d5a5c5ce2317fe6a0b6bd56d24657901d3fcbead13a2fac7eb6
User & Date: drh 2020-07-18 02:52:19
Context
2020-07-18
04:26
Close branch ... (check-in: 997267a1 user: andygoth tags: trunk)
02:52
Fix the "fossil clone" command so that it works again after the addition of the ability to support multiple remotes. ... (check-in: 857777f1 user: drh tags: trunk)
2020-07-17
23:53
For strtoll() with Visual Studio prior to MSVS 2013, fallback to _strtoi64(). ... (check-in: d626ddb5 user: ashepilko tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/url.c.

104
105
106
107
108
109
110

111
112

113
114
115
116
117
118
119
    zUrl = db_get("last-sync-url", 0);
    if( zUrl==0 ) return;
    if( pUrlData->passwd==0 ){
      pUrlData->passwd = unobscure(db_get("last-sync-pw", 0));
    }
    pUrlData->isAlias = 1;
  }else{

    char *zAlt;
    zAlt = db_text(0, "SELECT value FROM config WHERE name='sync-url:%q'",zUrl);

    if( zAlt ){
      pUrlData->passwd = unobscure(
        db_text(0, "SELECT value FROM config WHERE name='sync-pw:%q'",zUrl)
      );
      zUrl = zAlt;
      urlFlags |= URL_REMEMBER_PW;
      pUrlData->isAlias = 1;







>
|
<
>







104
105
106
107
108
109
110
111
112

113
114
115
116
117
118
119
120
    zUrl = db_get("last-sync-url", 0);
    if( zUrl==0 ) return;
    if( pUrlData->passwd==0 ){
      pUrlData->passwd = unobscure(db_get("last-sync-pw", 0));
    }
    pUrlData->isAlias = 1;
  }else{
    char *zKey = sqlite3_mprintf("sync-url:%q", zUrl);
    char *zAlt = db_get(zKey, 0);

    sqlite3_free(zKey);
    if( zAlt ){
      pUrlData->passwd = unobscure(
        db_text(0, "SELECT value FROM config WHERE name='sync-pw:%q'",zUrl)
      );
      zUrl = zAlt;
      urlFlags |= URL_REMEMBER_PW;
      pUrlData->isAlias = 1;