ErikR
ErikR

Reputation: 52039

have bundler use http: instead of git:?

I am installing gitlabhq, and in the Gemfile there are references to 'git://...' for certain resources.

However, I am behind a corporate firewall, so I have to use http://.

I can hand-edit the Gemfile, but I was wondering if there was another way to tell bundler to use http:// for git repositories?

Upvotes: 5

Views: 924

Answers (1)

fny
fny

Reputation: 33537

You can configure git to use https:// by running running git config --global url."https://".insteadOf git:// or by adding the following to ~/.gitconfig:

[url "https://"]
   insteadOf = git://

Upvotes: 11

Related Questions