Skip to content

Fix git submodule link for subgroup projects with relative path

Mark Chao requested to merge 37356-relative-submodule-link into master

What does this MR do?

Use Ruby build-in File#absolute_path to resolve git submodule link to projects on GitLab.com using relative path.

On the web interface, when a repo references a submodule with relative path, it creates a link so user to jump to the submodule repo easily. However this was implemented before we had subgroup, so the subgroup support was buggy. A proper relative path resolving logic is added to handle this.

What are the relevant issue numbers?

Fix #37356 (closed)

Does this MR meet the acceptance criteria?

Closes #37356 (closed)

Edited by Mark Chao

Merge request reports