mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 17:21:41 +00:00
fix: solo hacer merge si hubo cambios para traer
This commit is contained in:
parent
ab5ed0dec9
commit
85e528e660
1 changed files with 9 additions and 8 deletions
|
@ -7,7 +7,8 @@ class GitPullJob < ApplicationJob
|
|||
# @param :usuarie [Usuarie]
|
||||
# @return [nil]
|
||||
def perform(site, usuarie)
|
||||
site.repository.fetch
|
||||
return unless site.repository.fetch.positive?
|
||||
|
||||
site.repository.merge(usuarie)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue