change sth

This commit is contained in:
nigel007 2019-06-07 13:15:40 +08:00
parent e88f938979
commit 8d2372cabc
1 changed files with 1 additions and 1 deletions

View File

@ -46,8 +46,8 @@ class RepositoriesService
# 根据repo_url找到所属project
def findProjectByRepoUrl repo_url
# 解析ownername
Rails.logger.info("in the findProjectByRepoUrl function")
repo_url = repo_url[Redmine::Configuration['gitlab_address'].to_s.length + 1..repo_url.length - 1]
Rails.logger.info("!!!!!!!!!!" + repo_url)
index_split = repo_url.index("/")
owner_name = repo_url[0..index_split - 1]
Rails.logger.info("!!!!!!!!!!this is the owner name")