From 012355103e2c27951dc90402d1db6ef4cf5dced8 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Thu, 8 Oct 2009 22:32:56 -0700 Subject: [PATCH] Make sure we get out of the pages directory after updating. --- Rakefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Rakefile b/Rakefile index 8af5d72d..d4e75964 100644 --- a/Rakefile +++ b/Rakefile @@ -248,17 +248,18 @@ task :pages do sh %{git checkout #{proj}-pages} sh %{git reset --hard origin/#{proj}-pages} - Dir.chdir("/var/www/#{proj}-pages") - sh %{git fetch origin} + Dir.chdir("/var/www/#{proj}-pages") do + sh %{git fetch origin} - sh %{git checkout stable} - sh %{git reset --hard origin/stable} + sh %{git checkout stable} + sh %{git reset --hard origin/stable} - sh %{git checkout #{proj}-pages} - sh %{git reset --hard origin/#{proj}-pages} - sh %{rake build --trace} - sh %{mkdir -p tmp} - sh %{touch tmp/restart.txt} + sh %{git checkout #{proj}-pages} + sh %{git reset --hard origin/#{proj}-pages} + sh %{rake build --trace} + sh %{mkdir -p tmp} + sh %{touch tmp/restart.txt} + end end end