1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Reset to the proper branch when updating pages.

This commit is contained in:
Nathan Weizenbaum 2009-06-17 22:31:53 -07:00
parent 87d9e7987a
commit 6b9f4ca5ad

View file

@ -158,7 +158,7 @@ task :pages do
require 'fileutils'
raise 'No ENV["PROJ"]!' unless proj = ENV["PROJ"]
sh %{git checkout #{proj}-pages}
sh %{git reset --hard #{proj}-pages}
sh %{git reset --hard origin/#{proj}-pages}
sh %{staticmatic build .}
FileUtils.mv("site", "/var/www/#{proj}-pages")