From 72021232b5087938a2e961ed6087d2098c959617 Mon Sep 17 00:00:00 2001 From: nwb Date: Thu, 24 Jul 2014 17:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98gitlab=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/gitlab_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/helpers/gitlab_helper.rb b/app/helpers/gitlab_helper.rb index 810ac7c5a..679dcbdfc 100644 --- a/app/helpers/gitlab_helper.rb +++ b/app/helpers/gitlab_helper.rb @@ -82,6 +82,9 @@ module GitlabHelper # 新创建项目的web地址 web_url = temp['web_url'] web_url['http://localhost'] = REPO_IP_ADDRESS + # 新创建项目的本笃文件路径 + localfile = temp['web_url'] + localfile['http://localhost'] = ROOT_PATH # 保存数据 gitproject =GitlabProject.new @@ -89,6 +92,7 @@ module GitlabHelper gitproject.gitlab_project_id = temp['id'] gitproject.repository_url = repository_url gitproject.web_url = web_url + gitproject.localfile_url = localfile gitproject.save return true else