5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 02:06:21 +00:00

Merge branch 'rails' into issue-14533
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
f 2023-10-31 14:07:11 -03:00
commit 9bfa2dc736
No known key found for this signature in database

View file

@ -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