Fossil SCM
Use existing HTTP AUTH information if available when using Fossil configuration synchronization commands. Addresses [forum:d8cb1918f9|forum post d8cb1918f9].
Commit
5a942d1219df9159e126bb79f1b476f97746dc150271d0a3789dfff6146514ab
Parent
515a4d81917e9f0…
1 file changed
+1
+1
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -891,10 +891,11 @@ | ||
| 891 | 891 | } |
| 892 | 892 | url_parse(zServer, URL_PROMPT_PW|URL_USE_CONFIG); |
| 893 | 893 | if( g.url.protocol==0 ) fossil_fatal("no server URL specified"); |
| 894 | 894 | user_select(); |
| 895 | 895 | url_enable_proxy("via proxy: "); |
| 896 | + g.zHttpAuth = get_httpauth(); | |
| 896 | 897 | if( overwriteFlag ) mask |= CONFIGSET_OVERWRITE; |
| 897 | 898 | if( strncmp(zMethod, "push", n)==0 ){ |
| 898 | 899 | client_sync(0,0,(unsigned)mask,0,0); |
| 899 | 900 | }else if( strncmp(zMethod, "pull", n)==0 ){ |
| 900 | 901 | if( overwriteFlag ) db_unprotect(PROTECT_USER); |
| 901 | 902 |
| --- 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 |