Fossil

Check-in [14b84755]
Login

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

Overview
Comment:Fix the "fossil clone" command so that it preserves the project-code. All trunk versions going back to [a6e2ceb454] (2015-03-18) cause the cloned repo to have an incorrect project-code and thus rendered unable to sync.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:14b8475598268f3a3875ef95a0ae000e1737a926
User & Date: drh 2015-03-21 16:42:10
References
2015-03-30
09:24
Remove another check for "server loop", apart from [469efd6a7ce8ba44]: If the server-code is going to be removed ever in the future, this useless check will stand in the way. Then [14b8475598268f3a] could re-appear, but now with "server-code" in stead of with "project-code". check-in: a0cd8d35 user: jan.nijtmans tags: trunk
Context
2015-03-21
23:34
Place Newer and Older buttons on circa queries to make browsing easier. check-in: ced021fd user: andybradford tags: trunk
16:42
Fix the "fossil clone" command so that it preserves the project-code. All trunk versions going back to [a6e2ceb454] (2015-03-18) cause the cloned repo to have an incorrect project-code and thus rendered unable to sync. check-in: 14b84755 user: drh tags: trunk
2015-03-20
14:50
Explicitely specify "admin" as username, otherwise Docker cannot find out which user should be created check-in: 5811ecd7 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/clone.c.

180
181
182
183
184
185
186

187
188
189
190
191
192
193
      file_canonical_name(g.zSSLIdentity, &fn, 0);
      db_set("ssl-identity", blob_str(&fn), 0);
      blob_reset(&fn);
    }
    db_multi_exec(
      "REPLACE INTO config(name,value,mtime)"
      " VALUES('server-code', lower(hex(randomblob(20))), now());"

    );
    url_enable_proxy(0);
    clone_ssh_db_set_options();
    url_get_password_if_needed();
    g.xlinkClusterOnly = 1;
    nErr = client_sync(syncFlags,CONFIGSET_ALL,0);
    g.xlinkClusterOnly = 0;







>







180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
      file_canonical_name(g.zSSLIdentity, &fn, 0);
      db_set("ssl-identity", blob_str(&fn), 0);
      blob_reset(&fn);
    }
    db_multi_exec(
      "REPLACE INTO config(name,value,mtime)"
      " VALUES('server-code', lower(hex(randomblob(20))), now());"
      "DELETE FROM config WHERE name='project-code';"
    );
    url_enable_proxy(0);
    clone_ssh_db_set_options();
    url_get_password_if_needed();
    g.xlinkClusterOnly = 1;
    nErr = client_sync(syncFlags,CONFIGSET_ALL,0);
    g.xlinkClusterOnly = 0;