Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Check out Rubygems tags correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Feb 2, 2011
1 parent 63a5b62 commit 2c9d479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2c9d479

Please sign in to comment.