diff --git a/lib/tasks/after_deploy.rake b/lib/tasks/after_deploy.rake index 0f76cb137..6b01af915 100644 --- a/lib/tasks/after_deploy.rake +++ b/lib/tasks/after_deploy.rake @@ -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"