Browse files

Rakefile: introduce LIBGIT2_DEV env var to skip refreshing the submodule

We need this step in `rake compile` so that Bundler can install the
gem properly from git, but now we can disable the behavior for local
  • Loading branch information...
1 parent 824d548 commit e9438fa9f80d09da899f3866e6bf4469f41dc48d Scott J. Goldman committed Oct 24, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
@@ -16,7 +16,9 @@ end
desc "checkout libgit2 source"
task :checkout do
- sh "git submodule update --init"
+ if !ENV['LIBGIT2_DEV']
+ sh "git submodule update --init"
+ end
Rake::Task[:compile].prerequisites.insert(0, :checkout)

0 comments on commit e9438fa

Please sign in to comment.