This commit is contained in:
Jacob Vosmaer 2018-01-04 18:05:49 +01:00
parent 80242f246b
commit dcebe1494e

View file

@ -102,7 +102,7 @@ module Gitlab
#
# Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/387
def import_repository(storage, name, url)
if url.start_with?('.') || url.start_with?('/')
if url.start_with?('.', '/')
raise Error.new("don't use disk paths with import_repository: #{url.inspect}")
end