在Gemfile中删除分支名称导致错误

时间:2013-05-02 15:22:29

标签: ruby-on-rails bundler gemfile

我在我的Gemfile中使用了这个(使用带有斜杠的分支):

gem 'ice_cube', github: 'seejohnrun/ice_cube', branch: 'issues/50-from_ical'

产生此错误:

$ bundle
Updating git://github.com/seejohnrun/ice_cube.git
fatal: ambiguous argument 'issues/50-from_ical': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Git error: command `git rev-parse issues/50-from_ical` in directory
/Users/jp/.rvm/gems/ruby-2.0.0-p0@example/cache/bundler/git/ice_cube-63812451ddbe2391df352dbcaee4a6cf04a9f746 has failed.
If this error persists you could try removing the cache directory
'/Users/jp/.rvm/gems/ruby-2.0.0-p0@example/cache/bundler/git/ice_cube-63812451ddbe2391df352dbcaee4a6cf04a9f746'

其他分支(没有斜线)有效。有谁知道怎么解决这个问题?谢谢!

1 个答案:

答案 0 :(得分:3)

您确定问题是/吗?我检查了referenced repo,但没有公共分支issues/50-from_ical

我认为问题在于分支根本不存在。