5
0
Fork 0
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

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