diff --git a/app/jobs/git_pull_job.rb b/app/jobs/git_pull_job.rb index d5b23bdb..1dab07bf 100644 --- a/app/jobs/git_pull_job.rb +++ b/app/jobs/git_pull_job.rb @@ -8,6 +8,7 @@ class GitPullJob < ApplicationJob # @param :message [String] # @return [nil] def perform(site, usuarie, message) + return unless site.repository.origin return unless site.repository.fetch.positive? site.repository.merge(usuarie, message)