5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 19:41:42 +00:00

fix: solo hacer merge si hubo cambios para traer

This commit is contained in:
f 2023-09-27 16:46:33 -03:00
parent ab5ed0dec9
commit 85e528e660
No known key found for this signature in database

View file

@ -7,7 +7,8 @@ class GitPullJob < ApplicationJob
# @param :usuarie [Usuarie] # @param :usuarie [Usuarie]
# @return [nil] # @return [nil]
def perform(site, usuarie) def perform(site, usuarie)
site.repository.fetch return unless site.repository.fetch.positive?
site.repository.merge(usuarie) site.repository.merge(usuarie)
end end
end end