• Douglas Barbosa Alexandre's avatar
    Fix git clone for projects with a trailing dot over HTTP · 0391bf57
    Douglas Barbosa Alexandre authored
    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
    0391bf57
path_regex_spec.rb 17.9 KB