Fossil SCM

Fix the "fossil remote add NAME URL" command so that it accepts aliases for URL.

drh 2022-02-10 19:38 trunk
Commit c301e293896307edbc0c8ede398c87e0356adef6c0f93654433fb6f6b4defa81
1 file changed +1 -1
+1 -1
--- src/sync.c
+++ src/sync.c
@@ -612,11 +612,11 @@
612612
db_begin_write();
613613
if( fossil_strcmp(zUrl,"default")==0 ){
614614
x.canonical = db_get("last-sync-url",0);
615615
x.passwd = unobscure(db_get("last-sync-pw",0));
616616
}else{
617
- url_parse_local(zUrl, URL_PROMPT_PW, &x);
617
+ url_parse_local(zUrl, URL_PROMPT_PW|URL_USE_CONFIG, &x);
618618
}
619619
db_unprotect(PROTECT_CONFIG);
620620
db_multi_exec(
621621
"REPLACE INTO config(name, value, mtime)"
622622
" VALUES('sync-url:%q',%Q,now())",
623623
--- src/sync.c
+++ src/sync.c
@@ -612,11 +612,11 @@
612 db_begin_write();
613 if( fossil_strcmp(zUrl,"default")==0 ){
614 x.canonical = db_get("last-sync-url",0);
615 x.passwd = unobscure(db_get("last-sync-pw",0));
616 }else{
617 url_parse_local(zUrl, URL_PROMPT_PW, &x);
618 }
619 db_unprotect(PROTECT_CONFIG);
620 db_multi_exec(
621 "REPLACE INTO config(name, value, mtime)"
622 " VALUES('sync-url:%q',%Q,now())",
623
--- src/sync.c
+++ src/sync.c
@@ -612,11 +612,11 @@
612 db_begin_write();
613 if( fossil_strcmp(zUrl,"default")==0 ){
614 x.canonical = db_get("last-sync-url",0);
615 x.passwd = unobscure(db_get("last-sync-pw",0));
616 }else{
617 url_parse_local(zUrl, URL_PROMPT_PW|URL_USE_CONFIG, &x);
618 }
619 db_unprotect(PROTECT_CONFIG);
620 db_multi_exec(
621 "REPLACE INTO config(name, value, mtime)"
622 " VALUES('sync-url:%q',%Q,now())",
623

Keyboard Shortcuts

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