@@ -24,7 +24,7 @@ static char *_remote_ssh_pubkey = NULL;
2424static char * _remote_ssh_privkey = NULL ;
2525static char * _remote_ssh_passphrase = NULL ;
2626static char * _remote_ssh_fingerprint = NULL ;
27- static char * _remote_proxy_url = NULL ;
27+ static char * _remote_proxy_host = NULL ;
2828static char * _remote_proxy_user = NULL ;
2929static char * _remote_proxy_pass = NULL ;
3030
@@ -52,7 +52,7 @@ void test_online_clone__initialize(void)
5252 _remote_ssh_privkey = cl_getenv ("GITTEST_REMOTE_SSH_KEY" );
5353 _remote_ssh_passphrase = cl_getenv ("GITTEST_REMOTE_SSH_PASSPHRASE" );
5454 _remote_ssh_fingerprint = cl_getenv ("GITTEST_REMOTE_SSH_FINGERPRINT" );
55- _remote_proxy_url = cl_getenv ("GITTEST_REMOTE_PROXY_URL " );
55+ _remote_proxy_host = cl_getenv ("GITTEST_REMOTE_PROXY_HOST " );
5656 _remote_proxy_user = cl_getenv ("GITTEST_REMOTE_PROXY_USER" );
5757 _remote_proxy_pass = cl_getenv ("GITTEST_REMOTE_PROXY_PASS" );
5858
@@ -74,7 +74,7 @@ void test_online_clone__cleanup(void)
7474 git__free (_remote_ssh_privkey );
7575 git__free (_remote_ssh_passphrase );
7676 git__free (_remote_ssh_fingerprint );
77- git__free (_remote_proxy_url );
77+ git__free (_remote_proxy_host );
7878 git__free (_remote_proxy_user );
7979 git__free (_remote_proxy_pass );
8080
@@ -728,10 +728,10 @@ void test_online_clone__proxy_credentials_request(void)
728728{
729729 git_buf url = GIT_BUF_INIT ;
730730
731- if (!_remote_proxy_url || !_remote_proxy_user || !_remote_proxy_pass )
731+ if (!_remote_proxy_host || !_remote_proxy_user || !_remote_proxy_pass )
732732 cl_skip ();
733733
734- cl_git_pass (git_buf_printf (& url , "http://%s/" , _remote_proxy_url ));
734+ cl_git_pass (git_buf_printf (& url , "http://%s/" , _remote_proxy_host ));
735735
736736 g_options .fetch_opts .proxy_opts .type = GIT_PROXY_SPECIFIED ;
737737 g_options .fetch_opts .proxy_opts .url = url .ptr ;
@@ -747,10 +747,10 @@ void test_online_clone__proxy_credentials_in_url(void)
747747{
748748 git_buf url = GIT_BUF_INIT ;
749749
750- if (!_remote_proxy_url || !_remote_proxy_user || !_remote_proxy_pass )
750+ if (!_remote_proxy_host || !_remote_proxy_user || !_remote_proxy_pass )
751751 cl_skip ();
752752
753- cl_git_pass (git_buf_printf (& url , "http://%s:%s@%s/" , _remote_proxy_user , _remote_proxy_pass , _remote_proxy_url ));
753+ cl_git_pass (git_buf_printf (& url , "http://%s:%s@%s/" , _remote_proxy_user , _remote_proxy_pass , _remote_proxy_host ));
754754
755755 g_options .fetch_opts .proxy_opts .type = GIT_PROXY_SPECIFIED ;
756756 g_options .fetch_opts .proxy_opts .url = url .ptr ;
@@ -765,7 +765,7 @@ void test_online_clone__proxy_credentials_in_environment(void)
765765{
766766 git_buf url = GIT_BUF_INIT ;
767767
768- if (!_remote_proxy_url || !_remote_proxy_user || !_remote_proxy_pass )
768+ if (!_remote_proxy_host || !_remote_proxy_user || !_remote_proxy_pass )
769769 cl_skip ();
770770
771771 _orig_http_proxy = cl_getenv ("HTTP_PROXY" );
@@ -774,7 +774,7 @@ void test_online_clone__proxy_credentials_in_environment(void)
774774
775775 g_options .fetch_opts .proxy_opts .type = GIT_PROXY_AUTO ;
776776
777- cl_git_pass (git_buf_printf (& url , "http://%s:%s@%s/" , _remote_proxy_user , _remote_proxy_pass , _remote_proxy_url ));
777+ cl_git_pass (git_buf_printf (& url , "http://%s:%s@%s/" , _remote_proxy_user , _remote_proxy_pass , _remote_proxy_host ));
778778
779779 cl_setenv ("HTTP_PROXY" , url .ptr );
780780 cl_setenv ("HTTPS_PROXY" , url .ptr );
0 commit comments