Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Getting a strange error on bundle install..

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.

This wasn't happening until I installed the mysql2 gem and mysql with brew.

Any ideas what this error means?

UPDATE

Also none of the folders it is trying to clone this to exist. It's probably something to do with my bundle paths and juggling .rvm

like image 720
Trip Avatar asked Mar 30 '12 08:03

Trip


People also ask

How do I fix git clone not working?

If you have a problem cloning a repository, or using it once it has been created, check the following: Ensure that the user has gone through initial GitCentric login and has the correct username, email, and ssh. This should return a usage message that refers to the config-branch, config-repo, and ls-repo commands.

Why clone failed in GitHub?

This error occurs if the default branch of a repository has been deleted on GitHub.com. Detecting this error is simple; Git will warn you when you try to clone the repository: $ git clone https://github.com/user/repo.git # Clone a repo > Cloning into 'repo'... > remote: Counting objects: 66179, done. >

What does git clone do?

git clone is primarily used to point to an existing repo and make a clone or copy of that repo at in a new directory, at another location. The original repository can be located on the local filesystem or on remote machine accessible supported protocols. The git clone command copies an existing Git repository.


1 Answers

The problem is not on your end. Trying:

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

Fails on my machine with the same error.

Interestingly a non-bare clone seems to work as expected.

resolution: Clone from the https interface: https://github.com/maccman/gdata.git instead.

like image 129
brice Avatar answered Sep 21 '22 18:09

brice