ico*_*ast 4 ruby git bundler dtn
有了这个简单的Gemfile,
source 'https://rubygems.org'
gem 'activerecord', "~> 2.2.3"
gem 'activerecord-sqlserver-adapter', github: 'arthrex/activerecord-sqlserver-adapter', :branch => '2-3-stable'
Run Code Online (Sandbox Code Playgroud)
bundle install 失败了
Fetching git://github.com/arthrex/activerecord-sqlserver-adapter.git
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=No error
Git error: command `git clone
"git://github.com/arthrex/activerecord-sqlserver-adapter.git"
"c:/Languages/Ruby/1.9.3/lib/ruby/gems/1.9.1/cache/bundler/git/activerecord-sqlserver-adapter-8019982c6a12a1297e8a135275
d94bdee6cd893b"
--bare --no-hardlinks` in directory c:/Users/BZISAD0/Code/CSV has failed.
Run Code Online (Sandbox Code Playgroud)
起初我以为我的代理配置搞砸了,但我可以毫无问题地执行此命令:
$ git clone http://github.com/arthrex/activerecord-sqlserver-adapter.git
Run Code Online (Sandbox Code Playgroud)
但是,使用git协议,它会失败:
$ git clone git://github.com/arthrex/activerecord-sqlserver-adapter.git
Cloning into 'activerecord-sqlserver-adapter'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=No error
Run Code Online (Sandbox Code Playgroud)
所以我推断代理与git协议不一致.无论如何,无论出于何种原因,http工作正常,但git协议却没有.
有办法解决这个问题吗?例如配置使用http://而不是git://我的~/.gitconfig?
cpj*_*eur 12
不要github:在Gemfile中使用简短格式,只需使用常规git:语法即可
gem 'activerecord-sqlserver-adapter', git: 'http://github.com/arthrex/activerecord-sqlserver-adapter.git'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2906 次 |
| 最近记录: |