mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 11:36:21 +00:00
Merge branch 'rails' into issue-14533
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
commit
9bfa2dc736
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@ class GitPullJob < ApplicationJob
|
|||
# @param :message [String]
|
||||
# @return [nil]
|
||||
def perform(site, usuarie, message)
|
||||
return unless site.repository.origin
|
||||
|
||||
site.repository.fetch
|
||||
|
||||
return if site.repository.up_to_date?
|
||||
|
@ -18,6 +20,7 @@ class GitPullJob < ApplicationJob
|
|||
end
|
||||
|
||||
site.repository.git_lfs_checkout
|
||||
site.reindex_changes!
|
||||
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue