diff --git a/app/jobs/git_pull_job.rb b/app/jobs/git_pull_job.rb index 271ad91a..16e2fe5b 100644 --- a/app/jobs/git_pull_job.rb +++ b/app/jobs/git_pull_job.rb @@ -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