diff options
author | Evan Phoenix <ephoenix@engineyard.com> | 2011-04-29 09:48:15 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-04-30 12:52:47 -0700 |
commit | f7f74f35e0ea78a6ec04afe913dd52ed47f1aabc (patch) | |
tree | 593388bd22acfdffab2cfb5f92adca25b950d249 /Rakefile | |
parent | 73181820ee77d89966f6cbee5c0b6d3d8bf619d6 (diff) | |
download | bundler-f7f74f35e0ea78a6ec04afe913dd52ed47f1aabc.tar.gz |
Report the git SHA1 to double check which rubygems was used
Diffstat (limited to 'Rakefile')
-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 |