mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
fix origin-updated path
This commit is contained in:
parent
7416e8c80f
commit
0a68892774
1 changed files with 6 additions and 2 deletions
|
|
@ -399,12 +399,16 @@ class HarpBlog
|
|||
run("git push")
|
||||
end
|
||||
|
||||
def origin_updated_path
|
||||
File.join @path, 'origin-updated'
|
||||
end
|
||||
|
||||
def git_update(remote = 'origin')
|
||||
run("git update #{remote} && rm origin-updated")
|
||||
run "git update #{remote} && rm #{origin_updated_path}"
|
||||
end
|
||||
|
||||
def origin_updated?
|
||||
File.exist?('origin-updated')
|
||||
File.exist? origin_updated_path
|
||||
end
|
||||
|
||||
def update_if_needed
|
||||
|
|
|
|||
Loading…
Reference in a new issue