Fix git clone for projects with a trailing dot over HTTP
Projects with a trailing dot do not match the constraints applied on the repository_path for Git HTTP routes here, raising a route not found for these projects. This also breaks the Geo replication for these projects, since Geo sync repositories over HTTP(S). Since we allow project paths to end with a dot, this changes the Gitlab::PathRegex.repository_route_regex, Gitlab::PathRegex.repository_git_route_regex, and Gitlab::PathRegex.repository_wiki_git_route_regex to match these projects. Changelog: fixed
Showing
Please register or sign in to comment