reset soft so you dont lose your custom homepage when you deploy

This commit is contained in:
Maxwell Salzberg 2012-01-20 16:37:32 -08:00
parent 73655efd53
commit dcce2976b5

View file

@ -5,7 +5,7 @@ task :after_deploy => :environment do
if File.exist?(File.join(Rails.root, "app", "views", "home", "_show.html.haml")) && system("git log | head -5 | grep 'custom\ landing\ page'")
puts "-----> resetting HEAD before custom landing page commit"
system("git reset --hard HEAD^") ? true : fail
system("git reset HEAD^") ? true : fail
system("git stash pop") unless @did_not_stash
puts "-----> done"