summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-01-04 18:05:49 +0100
committerJacob Vosmaer <jacob@gitlab.com>2018-01-04 18:05:49 +0100
commitdcebe1494e35fcd8870b38f311c5176eab6b2a2f (patch)
treebb5b7452eebf306f7fee14b55957b2f41ed2171c
parent80242f246b69a803120bc06527b80601fafc526c (diff)
downloadgitlab-ce-ban-disk-import.tar.gz
-rw-r--r--lib/gitlab/shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/shell.rb b/lib/gitlab/shell.rb
index 1d0eae28f82..bef944ef1f9 100644
--- a/lib/gitlab/shell.rb
+++ b/lib/gitlab/shell.rb
@@ -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