fix origin-updated path

This commit is contained in:
Sami Samhuri 2015-04-25 00:23:00 -07:00
parent 7416e8c80f
commit 0a68892774

View file

@ -399,12 +399,16 @@ class HarpBlog
run("git push") run("git push")
end end
def origin_updated_path
File.join @path, 'origin-updated'
end
def git_update(remote = 'origin') def git_update(remote = 'origin')
run("git update #{remote} && rm origin-updated") run "git update #{remote} && rm #{origin_updated_path}"
end end
def origin_updated? def origin_updated?
File.exist?('origin-updated') File.exist? origin_updated_path
end end
def update_if_needed def update_if_needed