Git Clone 在 OS X Yosemite 上因 sslRead() 错误而失败
我目前使用的是 OS X Yosemite 10.10.3,并尝试 git clone 一个在 Windows 上运行良好的现有存储库.我尝试过使用 curl/openssl 通过自制软件安装 git 的组合,但没有成功.当我运行 git clone 时,出现以下 ssl 读取错误:
I'm currently on OS X Yosemite 10.10.3, and trying to git clone an existing repo which works fine on Windows. I've tried a combo of installing git through homebrew with curl/openssl with no luck. When i run the git clone, i get the following ssl read error:
GIT_CURL_VERBOSE=1 git clone http://myURL/gitlab/project/project.git
> remote: Counting objects: 1641, done. remote: Compressing objects:
> 100% (1588/1588), done.
> * SSLRead() return error -98061641), 136.73 MiB | 1.71 MiB/s
> * Closing connection 2 remote: Total 1641 (delta 910), reused 0 (delta 0) error: RPC failed; result=56, HTTP code = 200 Receiving objects:
> 100% (1641/1641), 137.48 MiB | 1.64 MiB/s, done. Resolving deltas:
> 100% (910/910), done.
我试过同时使用 Https &没有运气的 Http.有没有其他人碰到过类似的东西?
I've tried using both the Https & Http with no luck. Has anyone else hit something similar to this?
以下是 git、curl 和 & 的输出如果有帮助,则 openssl 版本.
Below are outputs of git, curl, & openssl versions if that helps.
curl --version
curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
git --version
git version 2.4.1
openssl version
OpenSSL 0.9.8zd 8 Jan 2015
提前感谢您的指导!
Javabrett 的链接让我找到了答案,它围绕 Yosemite 使用不正确的 SSL 依赖项,Git 最终使用了该依赖项.
Javabrett's link got me to the answer, it revolves around Yosemite using an incorrect SSL dependency, which Git ends up using.
使用这些标志通过自制软件安装 Git:
Installing Git via homebrew with these flags works:
brew install git --with-brewed-curl --with-brewed-openssl
或者:
brew reinstall git --with-brewed-curl --with-brewed-openssl