Fossil SCM
Get the -R option working on the remote-url command.
Commit
614519b46cb7cbf465ce9938294ef145a51d6296
Parent
2cc95180a0a4304…
1 file changed
+1
-1
+1
-1
| --- src/sync.c | ||
| +++ src/sync.c | ||
| @@ -170,11 +170,11 @@ | ||
| 170 | 170 | ** "pull" that omit the server URL. |
| 171 | 171 | */ |
| 172 | 172 | void remote_url_cmd(void){ |
| 173 | 173 | char *zUrl; |
| 174 | 174 | int showPw = find_option("show-pw",0,0)!=0; |
| 175 | - db_must_be_within_tree(); | |
| 175 | + db_find_and_open_repository(1); | |
| 176 | 176 | if( g.argc!=2 && g.argc!=3 ){ |
| 177 | 177 | usage("remote-url ?URL|off?"); |
| 178 | 178 | } |
| 179 | 179 | if( g.argc==3 ){ |
| 180 | 180 | if( strcmp(g.argv[2],"off")==0 ){ |
| 181 | 181 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -170,11 +170,11 @@ | |
| 170 | ** "pull" that omit the server URL. |
| 171 | */ |
| 172 | void remote_url_cmd(void){ |
| 173 | char *zUrl; |
| 174 | int showPw = find_option("show-pw",0,0)!=0; |
| 175 | db_must_be_within_tree(); |
| 176 | if( g.argc!=2 && g.argc!=3 ){ |
| 177 | usage("remote-url ?URL|off?"); |
| 178 | } |
| 179 | if( g.argc==3 ){ |
| 180 | if( strcmp(g.argv[2],"off")==0 ){ |
| 181 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -170,11 +170,11 @@ | |
| 170 | ** "pull" that omit the server URL. |
| 171 | */ |
| 172 | void remote_url_cmd(void){ |
| 173 | char *zUrl; |
| 174 | int showPw = find_option("show-pw",0,0)!=0; |
| 175 | db_find_and_open_repository(1); |
| 176 | if( g.argc!=2 && g.argc!=3 ){ |
| 177 | usage("remote-url ?URL|off?"); |
| 178 | } |
| 179 | if( g.argc==3 ){ |
| 180 | if( strcmp(g.argv[2],"off")==0 ){ |
| 181 |