From 97f7afd9fe01f4b6407fe4cfcc33b93d91bb527c Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Fri, 15 May 2015 19:06:21 -0700 Subject: [PATCH] cleanup after publishing to staging --- server/harp_blog.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/harp_blog.rb b/server/harp_blog.rb index 59b2f1c..bdff2db 100644 --- a/server/harp_blog.rb +++ b/server/harp_blog.rb @@ -170,7 +170,11 @@ class HarpBlog is_prod = env.to_s == 'production' target = is_prod ? 'publish' : 'publish_beta' success, output = run("make #{target}") - commit_root_data if is_prod + if is_prod + commit_root_data + else + run("git checkout #{root_data_path}") + end [success, output] end