diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-01-04 18:05:49 +0100 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-01-04 18:05:49 +0100 |
commit | dcebe1494e35fcd8870b38f311c5176eab6b2a2f (patch) | |
tree | bb5b7452eebf306f7fee14b55957b2f41ed2171c /lib | |
parent | 80242f246b69a803120bc06527b80601fafc526c (diff) | |
download | gitlab-ce-dcebe1494e35fcd8870b38f311c5176eab6b2a2f.tar.gz |
rubocopban-disk-import
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/shell.rb | 2 |
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 |