Make sure the stable branch is up-to-date when generating pages.

This commit is contained in:
Nathan Weizenbaum 2009-07-06 03:06:52 -07:00
parent d758a0d7b9
commit 252a0485de
1 changed files with 3 additions and 1 deletions

View File

@ -273,8 +273,10 @@ task :handle_update do
puts '=' * 150
puts "Running rake handle_update REF=#{ENV["REF"].inspect}"
sh %{git checkout master}
sh %{git fetch origin}
sh %{git checkout stable}
sh %{git reset --hard origin/stable}
sh %{git checkout master}
sh %{git reset --hard origin/master}
if branch == "master"