簡體   English   中英

bundle install 導致 git clone 錯誤。 不知道這個回復是什么意思

[英]bundle install leads to git clone error. Not sure what this response means

在捆綁安裝時遇到奇怪的錯誤..

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.

直到我用 brew 安裝了 mysql2 gem 和 mysql,這才發生。

任何想法這個錯誤意味着什么?

更新

它也沒有試圖克隆它的文件夾存在。 這可能與我的捆綁路徑和雜耍 .rvm 有關

問題不在你這邊。 試:

git clone 'git://github.com/maccman/gdata.git' "foobar" --bare --no-hardlinks

在我的機器上失敗並出現相同的錯誤。

有趣的是,非裸克隆似乎按預期工作。

解決方案:從 https 界面克隆:https: https://github.com/maccman/gdata.git

  1. 在你的終端寫bundle config github.https true
  2. 在你的終端寫bundle install

將您的 SSH 密鑰添加到 github。

或者正如@brice 提到的,您需要將您的團隊添加到存儲庫中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM