2

我的 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'

其他分支(没有斜线)工作。有谁知道如何解决这个问题?谢谢!

4

1 回答 1

3

你确定问题是/?我检查了引用的 repo并且没有公共分支issues/50-from_ical

我相信问题是分支根本不存在。

于 2013-05-02T15:26:21.533 回答