Fossil SCM

If the "autoconf" setting is set to "all" and the "fossil sync" command is run with a URL argument, then only sync with that one URL rather than syncing with all remotes.

drh 2024-01-27 16:27 trunk
Commit 949b321b26cdbcb3a89332bf4d9c791bc10ea09762364e657cd47070cdc9b75e
1 file changed +1 -1
+1 -1
--- src/sync.c
+++ src/sync.c
@@ -303,11 +303,11 @@
303303
usage("URL");
304304
}
305305
user_select();
306306
url_enable_proxy("via proxy: ");
307307
*pConfigFlags |= configSync;
308
- if( (*pSyncFlags & SYNC_ALLURL)==0 ){
308
+ if( (*pSyncFlags & SYNC_ALLURL)==0 && zUrl==0 ){
309309
const char *zAutosync = db_get_for_subsystem("autosync", "sync");
310310
if( sqlite3_strglob("*all*", zAutosync)==0 ){
311311
*pSyncFlags |= SYNC_ALLURL;
312312
}
313313
}
314314
--- src/sync.c
+++ src/sync.c
@@ -303,11 +303,11 @@
303 usage("URL");
304 }
305 user_select();
306 url_enable_proxy("via proxy: ");
307 *pConfigFlags |= configSync;
308 if( (*pSyncFlags & SYNC_ALLURL)==0 ){
309 const char *zAutosync = db_get_for_subsystem("autosync", "sync");
310 if( sqlite3_strglob("*all*", zAutosync)==0 ){
311 *pSyncFlags |= SYNC_ALLURL;
312 }
313 }
314
--- src/sync.c
+++ src/sync.c
@@ -303,11 +303,11 @@
303 usage("URL");
304 }
305 user_select();
306 url_enable_proxy("via proxy: ");
307 *pConfigFlags |= configSync;
308 if( (*pSyncFlags & SYNC_ALLURL)==0 && zUrl==0 ){
309 const char *zAutosync = db_get_for_subsystem("autosync", "sync");
310 if( sqlite3_strglob("*all*", zAutosync)==0 ){
311 *pSyncFlags |= SYNC_ALLURL;
312 }
313 }
314

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button