change sth
This commit is contained in:
parent
e88f938979
commit
8d2372cabc
app/services
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue