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

4

11

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

Lory answered 30/3, 2012 at 8:46 Comment(0)
S
18

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.

Santos answered 30/3, 2012 at 8:55 Comment(4)
Ah, amazing. Thanks for pointing that out my European comrade. I'll just comment that piece out. ;DLory
Well, I might not be so fast, you'll probably need the gdata API :)Santos
I switched it to the https connection and it worked. Interesting to say the least.Lory
This is probably something to take up to the github team.Santos
O
5
  1. In your Terminal write bundle config github.https true
  2. In your Terminal write bundle install
Orthotropic answered 28/1, 2020 at 12:20 Comment(0)
I
0

To modify the URL 'git://github.com/maccman/gdata.git' to use HTTPS instead of Git, you can simply replace 'git://' with 'https://':

Original URL:

git://github.com/maccman/gdata.git

Modified URL:

https://github.com/maccman/gdata.git
Inherit answered 23/4 at 7:29 Comment(0)
L
-2

Add your SSH key to the github.

Or as @brice mentioned, you need to add your team to the repo.

Lyrist answered 26/2, 2013 at 5:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.