Fossil SCM

Fix the "fossil config pull AREA" command when it lacks a URL, so that it uses the default sync URL.

drh 2022-01-16 18:36 trunk
Commit 661ea3315940eefb9daf09a37369a0e76ed8c790b55e4da288653c24ed849bcd
1 file changed +1 -1
+1 -1
--- src/configure.c
+++ src/configure.c
@@ -837,11 +837,11 @@
837837
}
838838
mask = configure_name_to_mask(g.argv[3], 1);
839839
if( g.argc==5 ){
840840
zServer = g.argv[4];
841841
}
842
- url_parse(zServer, URL_PROMPT_PW);
842
+ url_parse(zServer, URL_PROMPT_PW|URL_USE_CONFIG);
843843
if( g.url.protocol==0 ) fossil_fatal("no server URL specified");
844844
user_select();
845845
url_enable_proxy("via proxy: ");
846846
if( overwriteFlag ) mask |= CONFIGSET_OVERWRITE;
847847
if( strncmp(zMethod, "push", n)==0 ){
848848
--- src/configure.c
+++ src/configure.c
@@ -837,11 +837,11 @@
837 }
838 mask = configure_name_to_mask(g.argv[3], 1);
839 if( g.argc==5 ){
840 zServer = g.argv[4];
841 }
842 url_parse(zServer, URL_PROMPT_PW);
843 if( g.url.protocol==0 ) fossil_fatal("no server URL specified");
844 user_select();
845 url_enable_proxy("via proxy: ");
846 if( overwriteFlag ) mask |= CONFIGSET_OVERWRITE;
847 if( strncmp(zMethod, "push", n)==0 ){
848
--- src/configure.c
+++ src/configure.c
@@ -837,11 +837,11 @@
837 }
838 mask = configure_name_to_mask(g.argv[3], 1);
839 if( g.argc==5 ){
840 zServer = g.argv[4];
841 }
842 url_parse(zServer, URL_PROMPT_PW|URL_USE_CONFIG);
843 if( g.url.protocol==0 ) fossil_fatal("no server URL specified");
844 user_select();
845 url_enable_proxy("via proxy: ");
846 if( overwriteFlag ) mask |= CONFIGSET_OVERWRITE;
847 if( strncmp(zMethod, "push", n)==0 ){
848

Keyboard Shortcuts

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