Fossil SCM

Use existing HTTP AUTH information if available when using Fossil configuration synchronization commands. Addresses [forum:d8cb1918f9|forum post d8cb1918f9].

andybradford 2025-03-18 05:27 trunk
Commit 5a942d1219df9159e126bb79f1b476f97746dc150271d0a3789dfff6146514ab
1 file changed +1
--- src/configure.c
+++ src/configure.c
@@ -891,10 +891,11 @@
891891
}
892892
url_parse(zServer, URL_PROMPT_PW|URL_USE_CONFIG);
893893
if( g.url.protocol==0 ) fossil_fatal("no server URL specified");
894894
user_select();
895895
url_enable_proxy("via proxy: ");
896
+ g.zHttpAuth = get_httpauth();
896897
if( overwriteFlag ) mask |= CONFIGSET_OVERWRITE;
897898
if( strncmp(zMethod, "push", n)==0 ){
898899
client_sync(0,0,(unsigned)mask,0,0);
899900
}else if( strncmp(zMethod, "pull", n)==0 ){
900901
if( overwriteFlag ) db_unprotect(PROTECT_USER);
901902
--- src/configure.c
+++ src/configure.c
@@ -891,10 +891,11 @@
891 }
892 url_parse(zServer, URL_PROMPT_PW|URL_USE_CONFIG);
893 if( g.url.protocol==0 ) fossil_fatal("no server URL specified");
894 user_select();
895 url_enable_proxy("via proxy: ");
 
896 if( overwriteFlag ) mask |= CONFIGSET_OVERWRITE;
897 if( strncmp(zMethod, "push", n)==0 ){
898 client_sync(0,0,(unsigned)mask,0,0);
899 }else if( strncmp(zMethod, "pull", n)==0 ){
900 if( overwriteFlag ) db_unprotect(PROTECT_USER);
901
--- src/configure.c
+++ src/configure.c
@@ -891,10 +891,11 @@
891 }
892 url_parse(zServer, URL_PROMPT_PW|URL_USE_CONFIG);
893 if( g.url.protocol==0 ) fossil_fatal("no server URL specified");
894 user_select();
895 url_enable_proxy("via proxy: ");
896 g.zHttpAuth = get_httpauth();
897 if( overwriteFlag ) mask |= CONFIGSET_OVERWRITE;
898 if( strncmp(zMethod, "push", n)==0 ){
899 client_sync(0,0,(unsigned)mask,0,0);
900 }else if( strncmp(zMethod, "pull", n)==0 ){
901 if( overwriteFlag ) db_unprotect(PROTECT_USER);
902

Keyboard Shortcuts

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