I am using Windows 7 x64.

I have installed Git for Windows and cygwin's git.

These are the installed versions for Git for Windows:

    
    user@machine MINGW64 ~
    $ uname -a
    MINGW64_NT-6.1 machine 2.4.0(0.292/5/3) 2016-01-05 14:13 x86_64 Msys

    user@machine MINGW64 ~
    $ git --version
    git version 2.7.0.windows.1

    user@machine MINGW64 ~
    $ curl --version
    curl 7.46.0 (x86_64-w64-mingw32) libcurl/7.46.0 OpenSSL/1.0.2e 
lib/1.2.8 libidn/1.32 libssh2/1.6.0 librtmp/2.3
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps 
pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
    Features: IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz TLS-SRP

These are the installed versions for cygwin:

    user > ~ > uname -a
    CYGWIN_NT-6.1 machine 2.4.0(0.293/5/3) 2016-01-15 16:16 x86_64 Cygwin
    user > ~ > git --version
    git version 2.7.0
    user > ~ > curl --version
    curl 7.45.0 (x86_64-unknown-cygwin) libcurl/7.45.0 OpenSSL/1.0.2e 
zlib/1.2.8 libidn/1.29 libssh2/1.5.0
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps 
pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
    Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB 
SSL libz TLS-SRP UnixSockets Metalink

This is my .gitconfig regarding http.proxy in both installations:

    [http]
        proxy = https://:@evilcorp.proxy.com:8080

I can clone with Git for Windows:

    user@machine MINGW64 ~
    $ git config --get http.proxy
    https://:@evilcorp.proxy.com:8080

    user@machine MINGW64 ~
    $ git clone https://github.com/vim/vim
    Cloning into 'vim'...
    remote: Counting objects: 53744, done.
    remote: Total 53744 (delta 0), reused 0 (delta 0), pack-reused 53744
    Receiving objects: 100% (53744/53744), 41.26 MiB | 453.00 KiB/s, done.
    Resolving deltas: 100% (45107/45107), done.
    Checking connectivity... done.
    Checking out files: 100% (2661/2661), done.

But I get an authentication `407` error with cygwin's git:

    user > ~ > git config --get http.proxy
    https://:@evilcorp.proxy.com:8080
    user > ~ > git clone https://github.com/vim/vim
    Cloning into 'vim'...
    fatal: unable to access 'https://github.com/vim/vim/': Received HTTP 
code 407 from proxy after CONNECT

Setting the username and password in the proxy string does not change the 
result.

I have found this on the cywin mailing list which looks related to that 
problem 

http://thread.gmane.org/gmane.os.cygwin/155039

How can I fix that?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: cygcheck.out
Description: Binary data

Reply via email to