Commit 60038a99ca591c3520cf76831369be88a77f0c04
1 parent
fa8f8343
Exists in
master
and in
4 other branches
Import: Skip if not git repo
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
lib/tasks/gitlab/import.rake
@@ -23,6 +23,9 @@ namespace :gitlab do | @@ -23,6 +23,9 @@ namespace :gitlab do | ||
23 | # Skip if group or user | 23 | # Skip if group or user |
24 | next if namespaces.include?(repo_name) | 24 | next if namespaces.include?(repo_name) |
25 | 25 | ||
26 | + # skip if not git repo | ||
27 | + next unless repo_name =~ /.git$/ | ||
28 | + | ||
26 | # skip gitolite admin | 29 | # skip gitolite admin |
27 | next if repo_name == 'gitolite-admin.git' | 30 | next if repo_name == 'gitolite-admin.git' |
28 | 31 |