mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:56: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]
|
# @param :message [String]
|
||||||
# @return [nil]
|
# @return [nil]
|
||||||
def perform(site, usuarie, message)
|
def perform(site, usuarie, message)
|
||||||
|
return unless site.repository.origin
|
||||||
|
|
||||||
site.repository.fetch
|
site.repository.fetch
|
||||||
|
|
||||||
return if site.repository.up_to_date?
|
return if site.repository.up_to_date?
|
||||||
|
@ -18,6 +20,7 @@ class GitPullJob < ApplicationJob
|
||||||
end
|
end
|
||||||
|
|
||||||
site.repository.git_lfs_checkout
|
site.repository.git_lfs_checkout
|
||||||
|
site.reindex_changes!
|
||||||
|
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue