在OS X Yosemite上,Git Clone因sslRead()错误而失败

时间:2015-05-21 23:19:08

标签: git curl openssl osx-yosemite gitlab

我目前正在使用OS X Yosemite 10.10.3,并尝试git克隆现有的repo,它在Windows上运行正常。我尝试过使用curl / openssl通过自制软件安装git的组合,但没有运气。当我运行git clone时,我得到以下ssl读取错误:

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没有运气。还有其他人打过类似的东西吗?

以下是git,curl和&的输出。如果有帮助,可以使用openssl版本。

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

提前感谢任何方向!

4 个答案:

答案 0 :(得分:23)

Javabrett的链接让我得到答案,它围绕Yosemite使用不正确的SSL依赖,Git最终使用。

使用这些标志通过自制软件安装Git:

brew install git --with-brewed-curl --with-brewed-openssl

或者:

brew reinstall git --with-brewed-curl --with-brewed-openssl

答案 1 :(得分:7)

如果在上面的答案brew reinstall git --with-brewed-curl --with-brewed-openssl之前没有冲泡的openssl

所描述的工作流程here做得更好:

$ brew remove git
$ brew remove curl

$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git

答案 2 :(得分:2)

只需安装git" brew install git --with-brewed-curl --with-brewed-openssl"没有帮助。

通过使用任何协议https://或ssh://。

设置2远程URL,我得到了解决
  1. 上游团队回购
  2. fork repo的来源
  3. 现在,我可以毫不费力地将我的更改推送到原点。

    希望它有所帮助!

答案 3 :(得分:2)

如果您使用的是Virtul机器,那么这是一个连接问题。 要解决此问题,您必须转到VM设置以桥接物理连接。

VMware Player - >可移动设备 - >网络适配器 - >设置

您将找到网络连接并检查两者

桥接:直接连接到物理网络

复制物理网络连接状态(如果您使用的是笔记本电脑)。

检查以下链接以获取详细信息:

https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-826323AD-D014-475D-8909-DFA73B5A3A57.html