Commit a6e57749dccb2373dc13089006eba770bc376a67

Authored by Dmitriy Zaporozhets
1 parent 13b281c2

Use native repo path for import task. Skip wiki repos

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
lib/tasks/gitlab/import.rake
@@ -31,6 +31,11 @@ namespace :gitlab do @@ -31,6 +31,11 @@ namespace :gitlab do
31 31
32 puts "Processing #{repo_path}".yellow 32 puts "Processing #{repo_path}".yellow
33 33
  34 + if path =~ /.wiki\Z/
  35 + puts " * Skipping wiki repo"
  36 + next
  37 + end
  38 +
34 project = Project.find_with_namespace(path) 39 project = Project.find_with_namespace(path)
35 40
36 if project 41 if project
@@ -40,6 +45,7 @@ namespace :gitlab do @@ -40,6 +45,7 @@ namespace :gitlab do
40 45
41 project_params = { 46 project_params = {
42 name: name, 47 name: name,
  48 + path: name
43 } 49 }
44 50
45 # find group namespace 51 # find group namespace