Use full repository path instead of extracting name
In order to implement nested groups https://gitlab.com/gitlab-org/gitlab-ce/issues/2772 we can not rely on old path with one slash that split namespace and project name like namespace/project.git
. Now it can be both namespace/project.git
and namespace/namespace/namespace/project.git
. Because of that it makes no sense to extract part of full path. Instead we just pass path to API without change and let rails application do parsing/extraction.
Signed-off-by: Dmitriy Zaporozhets dmitriy.zaporozhets@gmail.com
Merge request reports
Activity
Added 1 commit:
- 26889b95 - Use full repository path for API calls instead of extracting name
Milestone changed to %8.14
118 118 119 119 protected 120 120 121 def project_name(repo) 122 project_name = repo.gsub("'", "") 123 project_name = project_name.gsub(/\.git\Z/, "") 124 project_name.gsub(/\A\//, "") 121 def sanitize_path(repo) 122 repo.gsub("'", "") Yeah, let's ask the person who added it
https://gitlab.com/gitlab-org/gitlab-shell/commit/02f4cb520458ad336e67c259810359ebcdaedb59
@smcgivern LOL
@smcgivern can you please review while I am waiting for CI?
@dzaporozhets I don't see any issues with this, I didn't beat CI though
Requires https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7148 to make GitLab work with this change
Mentioned in commit 0f8a3cbb