mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 14:23:38 +00:00
This commit is contained in:
parent
b119cba7e1
commit
0538b3bbfd
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ class GitPullJob < ApplicationJob
|
||||||
# @param :usuarie [Usuarie]
|
# @param :usuarie [Usuarie]
|
||||||
# @return [nil]
|
# @return [nil]
|
||||||
def perform(site, usuarie)
|
def perform(site, usuarie)
|
||||||
|
return unless site.repository.origin
|
||||||
return unless site.repository.fetch.positive?
|
return unless site.repository.fetch.positive?
|
||||||
|
|
||||||
site.repository.merge(usuarie)
|
site.repository.merge(usuarie)
|
||||||
|
|
Loading…
Reference in a new issue