aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorEvan Phoenix <ephoenix@engineyard.com>2011-04-29 09:48:15 -0700
committerAndre Arko <andre@arko.net>2011-04-30 12:52:47 -0700
commitf7f74f35e0ea78a6ec04afe913dd52ed47f1aabc (patch)
tree593388bd22acfdffab2cfb5f92adca25b950d249 /Rakefile
parent73181820ee77d89966f6cbee5c0b6d3d8bf619d6 (diff)
downloadbundler-f7f74f35e0ea78a6ec04afe913dd52ed47f1aabc.tar.gz
Report the git SHA1 to double check which rubygems was used
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 42b56919..e50c2582 100644
--- a/Rakefile
+++ b/Rakefile
@@ -71,12 +71,16 @@ begin
unless File.directory?("tmp/rubygems")
system("git clone git://github.com/rubygems/rubygems.git tmp/rubygems")
end
+ hash = nil
+
Dir.chdir("tmp/rubygems") do
system("git remote update")
system("git checkout #{rg}")
system("git pull origin master") if rg == "master"
+ hash = `git rev-parse HEAD`.strip
end
- puts "Running bundler specs against rubygems '#{rg}'"
+
+ puts "Running bundler specs against rubygems '#{rg}' at #{hash}"
ENV["RUBYOPT"] = "-I#{File.expand_path("tmp/rubygems/lib")} #{rubyopt}"
end