Skip to content

Commit

Permalink
In further git genius, update tags before checking them out
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Mar 4, 2011
1 parent 91e89f6 commit 6f49167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -60,7 +60,7 @@ begin
namespace :rubygems do
# Rubygems 1.3.5, 1.3.6, and HEAD specs
rubyopt = ENV["RUBYOPT"]
%w(master v1.3.6 v1.3.7 v1.4.0 v1.4.1 v1.5.0).each do |rg|
%w(master v1.3.6 v1.3.7 v1.4.2 v1.5.3 v1.6.1).each do |rg|
desc "Run specs with Rubygems #{rg}"
RSpec::Core::RakeTask.new(rg) do |t|
t.rspec_opts = %w(-fs --color)
Expand All @@ -72,6 +72,7 @@ begin
system("git clone git://github.com/rubygems/rubygems.git tmp/rubygems")
end
Dir.chdir("tmp/rubygems") do
system("git remote update")
system("git checkout #{rg}")
system("git pull origin master") if rg == "master"
end
Expand Down

0 comments on commit 6f49167

Please sign in to comment.