Git Clone在OS X Yosemite上发生sslRead()错误 [英] Git Clone Fails with sslRead() error on OS X Yosemite

查看:231
本文介绍了Git Clone在OS X Yosemite上发生sslRead()错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在OS X Yosemite 10.10.3,并试图克隆克隆现有的repo在Windows上正常工作。我试过一个组合安装git通过homebrew与curl / openssl没有运气。当我运行git克隆,我得到以下ssl读取错误:

  GIT_CURL_VERBOSE = 1 git clone http:// myURL / gitlab / project / project.git 

> remote:计数对象:1641,完成。 remote:压缩对象:
> 100%(1588/1588),做。
> * SSLRead()返回错误-98061641),136.73 MiB | 1.71 MiB / s
> *关闭连接2远程:总计1641(增量910),重用0(增量0)错误:RPC失败; result = 56,HTTP code = 200接收对象:
> 100%(1641/1641),137.48MiB | 1.64 MiB / s,做。解决delta:
> 100%(910/910),完成。

我试过使用Https& Http没有运气。有没有人打过类似这样的东西?



下面是git,curl和&

  curl --version 
curl 7.37.1(x86_64-apple-darwin14.0 )libcurl / 7.37.1 SecureTransport zlib / 1.2.5
协议:dict文件ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
特性:AsynchDNS GSS协商IPv6大文件NTLM NTLM_WB SSL libz

git --version
git版本2.4.1

openssl版本
OpenSSL 0.9.8zd 2015年1月8日
<

解决方案

div>

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



通过带有这些标志的homebrew安装Git的工作原理:

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

或:

  brew重新安装git --with-brewed-curl --with-brewed-openssl 
pre>

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.

I've tried using both the Https & Http with no luck. Has anyone else hit something similar to this?

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

Thanks in advance for any direction!

解决方案

Javabrett's link got me to the answer, it revolves around Yosemite using an incorrect SSL dependency, which Git ends up using.

Installing Git via homebrew with these flags works:

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

Or:

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

这篇关于Git Clone在OS X Yosemite上发生sslRead()错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆