summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-11-06 09:42:06 +0100
committerJames Lopez <james@jameslopez.es>2017-11-06 16:15:11 +0100
commit6c947c2e90dfa09008eb64cdc451e39355fd5f82 (patch)
tree3db5ded2b268171aab5d2c49f2b07a1bb9d7ff4d
parent4e440d697586204b2c8aa163f62967a280ad1c94 (diff)
downloadgitlab-ce-6c947c2e90dfa09008eb64cdc451e39355fd5f82.tar.gz
fix path issue
-rw-r--r--lib/gitlab/bare_repository_import/importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/bare_repository_import/importer.rb b/lib/gitlab/bare_repository_import/importer.rb
index 43795965801..1a17cc4bf9e 100644
--- a/lib/gitlab/bare_repository_import/importer.rb
+++ b/lib/gitlab/bare_repository_import/importer.rb
@@ -7,7 +7,7 @@ module Gitlab
def self.execute(import_path)
import_path << '/' unless import_path.ends_with?('/')
- repos_to_import = Dir.glob(import_path + '/**/*.git')
+ repos_to_import = Dir.glob(import_path + '**/*.git')
repos_to_import.each do |repo_path|
bare_repo = Gitlab::BareRepositoryImport::BareRepository.new(import_path, repo_path)