From a6e57749dccb2373dc13089006eba770bc376a67 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 14 Aug 2013 12:45:17 +0300 Subject: [PATCH] Use native repo path for import task. Skip wiki repos --- lib/tasks/gitlab/import.rake | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/tasks/gitlab/import.rake b/lib/tasks/gitlab/import.rake index 2fd7d01..668ef1d 100644 --- a/lib/tasks/gitlab/import.rake +++ b/lib/tasks/gitlab/import.rake @@ -31,6 +31,11 @@ namespace :gitlab do puts "Processing #{repo_path}".yellow + if path =~ /.wiki\Z/ + puts " * Skipping wiki repo" + next + end + project = Project.find_with_namespace(path) if project @@ -40,6 +45,7 @@ namespace :gitlab do project_params = { name: name, + path: name } # find group namespace -- libgit2 0.21.2