Fossil SCM

Get the -R option working on the remote-url command.

drh 2009-08-22 19:15 trunk
Commit 614519b46cb7cbf465ce9938294ef145a51d6296
1 file changed +1 -1
+1 -1
--- src/sync.c
+++ src/sync.c
@@ -170,11 +170,11 @@
170170
** "pull" that omit the server URL.
171171
*/
172172
void remote_url_cmd(void){
173173
char *zUrl;
174174
int showPw = find_option("show-pw",0,0)!=0;
175
- db_must_be_within_tree();
175
+ db_find_and_open_repository(1);
176176
if( g.argc!=2 && g.argc!=3 ){
177177
usage("remote-url ?URL|off?");
178178
}
179179
if( g.argc==3 ){
180180
if( strcmp(g.argv[2],"off")==0 ){
181181
--- 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

Keyboard Shortcuts

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