如果Gemfile具有:
gem 'akephalos', :git => "git@github.com:Nerian/akephalos.git"当我这样做的时候:
$ bundle update我注意到它只下载最后一次提交,比第一次“捆绑”花费更少的时间。
git repo保存在哪里?
发布于 2011-01-12 00:59:23
根据耶胡达·卡茨的this post:
我们使用--bare选项将git存储库签出到BUNDLE_PATH (同样,默认为~/.bundle/#{RUBY_ENGINE}/#{RUBY_VERSION}或带有rvm的$GEM_HOME )。这允许我们共享git存储库,比如rails存储库,然后根据单个Gemfile的指定对特定版本、分支或标签进行本地签出。
This answer指出:
gems Bundler会将您的
安装到它自己的~/.rvm/gems/ruby-{版本}/bundler/gems目录中。
因此,当您执行bundle update时,bundler可以简单地执行git pull。
https://stackoverflow.com/questions/4633526
复制相似问题