mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 20:21:42 +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]
|
# @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
|
Loading…
Reference in a new issue