From 5bcc9c21f23a8f3c58190e379d5e9a9531e884b9 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 28 Oct 2015 14:57:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=BE=E7=A8=8B=E6=88=90?= =?UTF-8?q?=E5=91=98=E4=B8=8D=E8=83=BD=E7=BC=96=E8=BE=91=E3=80=81=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E3=80=81=E6=B7=BB=E5=8A=A0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/trustie/gitlab/manage_member.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/trustie/gitlab/manage_member.rb b/lib/trustie/gitlab/manage_member.rb index d0f74ad5e..b8c2149f4 100644 --- a/lib/trustie/gitlab/manage_member.rb +++ b/lib/trustie/gitlab/manage_member.rb @@ -42,11 +42,15 @@ module Trustie end def repository - project.repository + unless project.nil? + project.repository + end end def isGitlabProject? - repository && repository.gitlab? + unless repository.nil? + repository && repository.gitlab? + end end end