diff options
author | Andre Arko <andre@arko.net> | 2011-02-01 17:27:42 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-02-01 17:27:42 -0800 |
commit | 2c9d47949444dc6f0216c096d9bfdedac95db630 (patch) | |
tree | c8255cdda32b65ffe97e95ac211c9dec037f934a | |
parent | 63a5b62ce1d7acacf87749e94ad1bda1624e0009 (diff) | |
download | bundler-2c9d47949444dc6f0216c096d9bfdedac95db630.tar.gz |
Check out Rubygems tags correctly
-rw-r--r-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -71,7 +71,8 @@ begin unless File.directory?("tmp/rubygems") system("git clone git://github.com/rubygems/rubygems.git tmp/rubygems") end - system("cd tmp/rubygems && git remote update && git reset --hard origin/#{rg}") + system("cd tmp/rubygems && git checkout #{rg}") + system("git pull") if rg == "master" ENV["RUBYOPT"] = "-I#{File.expand_path("tmp/rubygems/lib")} #{rubyopt}" end |