Google Code Git不能clone的解决

最近Google Code开始支持Git了,赞一个!

但使用git clone项目时却出现了下面的错误:

$ git clone https://code.google.com/p/leveldb/
Cloning into leveldb...
error: SSL: certificate subject name (climb) does not match target host name 'code.google.com' while accessing https://code.google.com/p/leveldb/info/refs

fatal: HTTP request failed

尝试添加网站证书到/etc/ssl/certs/ca-certificates.crt还是不行。

后来终于发现解决办法:禁用Git的SSL验证。

$ export GIT_SSL_NO_VERIFY=1

解决!

tagged by
comments powered by Disqus