捆绑安装失败 – 使用github url的Gem – 有什么问题?

在我的gemfile中我有:

gem 'capistrano-cook', github: "subsis/capistrano-cook" 

以下是在ruby / rails控制台中运行bundle install时的错误日志: http : //pastie.org/private/aftbq3rukjdthua4lfjzbw

 C:\rails\app>bundle install Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/capistrano-cook-d0d4f904a443/capistr ano-cook.gemspec:17:in ``': No such file or directory - git ls-files (Errno::ENO 

在Git Bash控制台中运行bundle install时工作正常。 但是当需要capistrano部署文件中的gem时,它不会被加载。 好像它毕竟没有安装。

bundler gem是版本1.2.3

 C:\rails\app>gem show capistrano-cook ERROR: While executing gem ... (RuntimeError) Unknown command show C:\rails\app>bundle show capistrano-cook C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/capistrano-cook-d0d4f904a443 C:\rails\app> 

尝试:

 gem 'capistrano-cook', :git => 'git://github.com/subsis/capistrano-cook.git'