aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-03-03 21:49:02 -0800
committerAndre Arko <andre@arko.net>2011-03-03 21:49:02 -0800
commit91e89f6d693420f42dcf9a14e94008e6bf205175 (patch)
tree5418e3f06cd00b6749db7a6b0a412d36008302eb /Rakefile
parentd035e0e8cf65f74137f5fe5788b009c6235ac2ea (diff)
downloadbundler-91e89f6d693420f42dcf9a14e94008e6bf205175.tar.gz
In a total noob move, I pulled bundler master instead of rubygems master
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 0ae4d688..d09dafec 100644
--- a/Rakefile
+++ b/Rakefile
@@ -71,8 +71,10 @@ begin
unless File.directory?("tmp/rubygems")
system("git clone git://github.com/rubygems/rubygems.git tmp/rubygems")
end
- system("cd tmp/rubygems && git checkout #{rg}")
- system("git pull origin master") if rg == "master"
+ Dir.chdir("tmp/rubygems") do
+ system("git checkout #{rg}")
+ system("git pull origin master") if rg == "master"
+ end
ENV["RUBYOPT"] = "-I#{File.expand_path("tmp/rubygems/lib")} #{rubyopt}"
end