Fossil SCM
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.
Commit
14b8475598268f3a3875ef95a0ae000e1737a926
Parent
5811ecd7cc0937d…
1 file changed
+1
+1
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -182,10 +182,11 @@ | ||
| 182 | 182 | blob_reset(&fn); |
| 183 | 183 | } |
| 184 | 184 | db_multi_exec( |
| 185 | 185 | "REPLACE INTO config(name,value,mtime)" |
| 186 | 186 | " VALUES('server-code', lower(hex(randomblob(20))), now());" |
| 187 | + "DELETE FROM config WHERE name='project-code';" | |
| 187 | 188 | ); |
| 188 | 189 | url_enable_proxy(0); |
| 189 | 190 | clone_ssh_db_set_options(); |
| 190 | 191 | url_get_password_if_needed(); |
| 191 | 192 | g.xlinkClusterOnly = 1; |
| 192 | 193 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -182,10 +182,11 @@ | |
| 182 | blob_reset(&fn); |
| 183 | } |
| 184 | db_multi_exec( |
| 185 | "REPLACE INTO config(name,value,mtime)" |
| 186 | " VALUES('server-code', lower(hex(randomblob(20))), now());" |
| 187 | ); |
| 188 | url_enable_proxy(0); |
| 189 | clone_ssh_db_set_options(); |
| 190 | url_get_password_if_needed(); |
| 191 | g.xlinkClusterOnly = 1; |
| 192 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -182,10 +182,11 @@ | |
| 182 | blob_reset(&fn); |
| 183 | } |
| 184 | db_multi_exec( |
| 185 | "REPLACE INTO config(name,value,mtime)" |
| 186 | " VALUES('server-code', lower(hex(randomblob(20))), now());" |
| 187 | "DELETE FROM config WHERE name='project-code';" |
| 188 | ); |
| 189 | url_enable_proxy(0); |
| 190 | clone_ssh_db_set_options(); |
| 191 | url_get_password_if_needed(); |
| 192 | g.xlinkClusterOnly = 1; |
| 193 |