summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Phoenix <ephoenix@engineyard.com>2011-04-29 09:48:15 -0700
committerEvan Phoenix <ephoenix@engineyard.com>2011-04-29 09:48:15 -0700
commit4b958b9ca6a77bf859b40769e6c9851d34c7eaa4 (patch)
treeaab60808dc663062491c025d09e25d98afa4a816
parentcd8b2ea3a96915348584b0e242f2b2b95f5c7af8 (diff)
downloadbundler-4b958b9ca6a77bf859b40769e6c9851d34c7eaa4.tar.gz
Report the git SHA1 to double check which rubygems was used
-rw-r--r--Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 42b56919ad..e50c2582ad 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