I have a gem file in which i am trying to get
“gem ‘twitter-bootstrap-rails’, git: ‘https://github.com/seyhunak/twitter-bootstrap-rails.git‘”
Using bundle install
command and it gives the below error:
C:SoorajPlaydroneplaydrone-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.
But the git url is correct.
Its asking me to delete the cache folder and I delete it and run the command and I get the same error.
Can anyone please help what this error is and how I can rectify?
2
Answers
According to the documentation, it should be:
You should replace ‘https’ with ‘git’.
Why are you pulling the latest build? This is generally not a good idea unless you have a reason to do so as it is not likely to be as stable as a release. Generally, you will want the latest stable release.
This is similar to bundler/issues/2571, where Cygwin was installed first (before running
bundle install
from aCMD.exe
session, outside Cygwin)