bundle install导致git clone错误.不确定这个回应意味着什么

Tri*_*rip 5 git clone ruby-on-rails

在捆绑安装上遇到奇怪的错误..

bundle install
Fetching gem metadata from http://rubygems.org/.....
Fetching gem metadata from http://rubygems.org/..
Fetching git://github.com/maccman/gdata.git
fatal: The remote end hung up unexpectedly
Git error: command `git clone 'git://github.com/maccman/gdata.git' "/Users/elephanttrip/.rvm/gems/ruby-1.9.2-p318@shasta/cache/bundler/git/gdata-811f852468ac76e0019108d8c5320da12b6683d4" --bare --no-hardlinks` in directory /Users/elephanttrip/Sites/shasta has failed.
Run Code Online (Sandbox Code Playgroud)

直到我用brew安装了mysql2 gem和mysql才发生这种情况.

任何想法这个错误意味着什么?

UPDATE

此外,它没有尝试克隆它的文件夹存在.这可能与我的捆绑路径和杂耍.rvm有关

bri*_*ice 15

问题不在于你.试:

git clone 'git://github.com/maccman/gdata.git' "foobar" --bare --no-hardlinks
Run Code Online (Sandbox Code Playgroud)

在我的机器上出现相同的错误.

有趣的是,非裸克隆似乎按预期工作.

解决方案:从https界面克隆:https://github.com/maccman/gdata.git改为.


Dan*_*cki 5

  1. 在你的终端中写bundle config github.https true
  2. 在你的终端中写bundle install