Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-01-04 20:05:49 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-01-04 20:05:49 +0300
commitdcebe1494e35fcd8870b38f311c5176eab6b2a2f (patch)
treebb5b7452eebf306f7fee14b55957b2f41ed2171c /lib/gitlab/shell.rb
parent80242f246b69a803120bc06527b80601fafc526c (diff)
rubocop
Diffstat (limited to 'lib/gitlab/shell.rb')
-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