错误:“致命的:使用bundle安装时,我不处理协议``git` [英] error: "fatal: I don't handle protocol ``git` when using bundle install

查看:94
本文介绍了错误:“致命的:使用bundle安装时,我不处理协议``git`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的GemFile中有以下行:
$ b $ p $ ge $'rails',:git => 'git://github.com/rails/rails.git'



我得到以下错误:

 获取git://github.com/rails/rails.git 
致命:我不处理协议''git'
git错误:命令`git clone'git://github.com/rails/rails.git'...

但是当我运行 gem install'rails'时,它工作正常。



clone命令,bundler在git://地址周围添加单引号引发错误。



我正在使用windows。任何想法为什么我得到这个错误?



干杯

解决方案

这是Bundler 1.0.14较新版本的问题。

我需要恢复到1.0.13才能正常工作。他们显然有一些问题处理Windows中的转义字符。



请看这里> https://github.com/carlhuda/bundler/issues/1212


I have the following line in my GemFile :

gem 'rails', :git => 'git://github.com/rails/rails.git'

I get the following error:

Fetching git://github.com/rails/rails.git
fatal: I don't handle protocol ''git'
Git error: command `git clone 'git://github.com/rails/rails.git'...

but when I run gem install 'rails' it works fine.

basically when running the clone command, bundler adds the single quotes around the git:// address which throws the error.

I am working on windows. Any ideas why I am getting this error?

Cheers

解决方案

It's the issue with the newer version of the Bundler 1.0.14.

I needed to revert to 1.0.13 to make it work. They apparently had some issues dealing with escape characters in Windows.

See here > https://github.com/carlhuda/bundler/issues/1212

这篇关于错误:“致命的:使用bundle安装时,我不处理协议``git`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆