【发布时间】:2015-09-22 08:28:20
【问题描述】:
我有一个我想要获取的 gem 文件 "gem 'twitter-bootstrap-rails',git: 'https://github.com/seyhunak/twitter-bootstrap-rails.git'"
使用bundle install 命令会出现以下错误:
C:\Sooraj\Playdrone\playdrone-master>bundle install
Fetching https://github.com/seyhunak/twitter-bootstrap-rails.git
fatal: '/cygdrive/c/Sooraj/Playdrone/playdrone-master/C:/Ruby22/lib/ruby/gems/2.
2.0/cache/bundler/git/twitter-bootstrap-rails-eff46a5fc3c9c652c290119047c5ec9247068903' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Retrying git clone --no-checkout --quiet "C:/Ruby22/lib/ruby/gems/2.2.0/cache/bundler/git/twitter-bootstrap-rails-eff46a5fc3c9c652c290119047c5ec9247068903" "C:/
Ruby22/lib/ruby/gems/2.2.0/bundler/gems/twitter-bootstrap-rails-38476dbd7f9a"
due to error (2/4):
Bundler::Source::Git::GitCommandError Git error:
command `git clone --no-checkout --quiet "C:/Ruby22/lib/ruby/gems/2.2.0/cache/bundler/git/twitter-bootstrap-rails-eff46a5fc3c9c652c290119047c5ec9247068903" "C:/Ruby22/lib/ruby/gems/2.2.0/bundler/gems/twitter-bootstrap-rails-38476dbd7f9a"`
in directory C:/Sooraj/Playdrone/playdrone-master has failed.
If this error persists you could try removing the cache directory
'C:/Ruby22/lib/ruby/gems/2.2.0/cache/bundler/git/twitter-bootstrap-rails-eff46a5fc3c9c652c290119047c5ec9247068903'
fatal: '/cygdrive/c/Sooraj/Playdrone/playdrone-master/C:/Ruby22/lib/ruby/gems/2.2.0/cache/bundler/git/twitter-bootstrap-rails-eff46a5fc3c9c652c290119047c5ec9247068903'
does not appear to be a git repository
fatal: Could not read from remote repository.
但是 git url 是正确的。
它要求我删除缓存文件夹,我删除它并运行命令,我得到同样的错误。
谁能帮忙看看这个错误是什么以及如何纠正?
【问题讨论】:
标签: ruby-on-rails ruby git ruby-on-rails-3 twitter-bootstrap