Fossil SCM
Fix the "fossil remote add NAME URL" command so that it accepts aliases for URL.
Commit
c301e293896307edbc0c8ede398c87e0356adef6c0f93654433fb6f6b4defa81
Parent
740d655e553f0ef…
1 file changed
+1
-1
+1
-1
| --- src/sync.c | ||
| +++ src/sync.c | ||
| @@ -612,11 +612,11 @@ | ||
| 612 | 612 | db_begin_write(); |
| 613 | 613 | if( fossil_strcmp(zUrl,"default")==0 ){ |
| 614 | 614 | x.canonical = db_get("last-sync-url",0); |
| 615 | 615 | x.passwd = unobscure(db_get("last-sync-pw",0)); |
| 616 | 616 | }else{ |
| 617 | - url_parse_local(zUrl, URL_PROMPT_PW, &x); | |
| 617 | + url_parse_local(zUrl, URL_PROMPT_PW|URL_USE_CONFIG, &x); | |
| 618 | 618 | } |
| 619 | 619 | db_unprotect(PROTECT_CONFIG); |
| 620 | 620 | db_multi_exec( |
| 621 | 621 | "REPLACE INTO config(name, value, mtime)" |
| 622 | 622 | " VALUES('sync-url:%q',%Q,now())", |
| 623 | 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, &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 |