diff options
author | Evan Phoenix <ephoenix@engineyard.com> | 2011-04-29 09:48:15 -0700 |
---|---|---|
committer | Evan Phoenix <ephoenix@engineyard.com> | 2011-04-29 09:48:15 -0700 |
commit | 4b958b9ca6a77bf859b40769e6c9851d34c7eaa4 (patch) | |
tree | aab60808dc663062491c025d09e25d98afa4a816 | |
parent | cd8b2ea3a96915348584b0e242f2b2b95f5c7af8 (diff) | |
download | bundler-4b958b9ca6a77bf859b40769e6c9851d34c7eaa4.tar.gz |
Report the git SHA1 to double check which rubygems was used
-rw-r--r-- | Rakefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |