mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:56:22 +00:00
fix: reportar errores de ssh una sola vez
closes #14339 closes #14561 closes #14662 closes #15845 closes #15846 closes #15847 closes #15848 closes #15849 closes #15855 closes #15856 closes #15857 closes #15858 closes #15859 closes #15860 closes #15861 closes #15862 closes #15863 closes #15864 closes #15865 closes #15866 closes #15867 closes #15868 closes #15869 closes #15870 closes #15871
This commit is contained in:
parent
453798dcc7
commit
c9ef117138
1 changed files with 10 additions and 2 deletions
|
@ -6,6 +6,14 @@ class GitPushJob < ApplicationJob
|
|||
# @param :site [Site]
|
||||
# @return [nil]
|
||||
def perform(site)
|
||||
site.repository.push if site.repository.origin
|
||||
site.repository.push if site.repository.origin
|
||||
end
|
||||
end
|
||||
|
||||
# Reportar una sola vez para que podamos resolver el problema, pero
|
||||
# reportarlo igual.
|
||||
#
|
||||
# @return [Bool]
|
||||
def handle_error(error)
|
||||
expire
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue