Commit c627c8fe authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix relative path detection for ssh://host:port/repo.git

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent fa617316
......@@ -88,7 +88,9 @@ class GitlabShell
end
def escape_path(path)
if File.absolute_path(path, repos_path) == File.join(repos_path, path)
full_repo_path = File.join(repos_path, path)
if File.absolute_path(full_repo_path) == full_repo_path
path
else
raise "Wrong repository path"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment