summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-02-01 17:27:42 -0800
committerAndre Arko <andre@arko.net>2011-02-01 17:27:42 -0800
commit2c9d47949444dc6f0216c096d9bfdedac95db630 (patch)
treec8255cdda32b65ffe97e95ac211c9dec037f934a
parent63a5b62ce1d7acacf87749e94ad1bda1624e0009 (diff)
downloadbundler-2c9d47949444dc6f0216c096d9bfdedac95db630.tar.gz
Check out Rubygems tags correctly
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index b68bc10ccc..6f9e3c4d7b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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