Skip to content

Commit 720d522

Browse files
author
root
committed
Merge branch 'devel' into v1.x
2 parents 3e724b7 + afdf321 commit 720d522

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: lib/tasks/migration_tools.rake

+7
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ namespace :redmine_git_hosting do
8686
# Don't update real Git repositories
8787
next if repository.url.start_with?('/')
8888

89+
# Don't update orphan repositories
90+
if repository.project.nil?
91+
puts "Repository with id : '#{repository.id}' doesn't have a project, skipping !!"
92+
puts ""
93+
next
94+
end
95+
8996
# Update Gitolite repositories
9097
if repository.identifier.nil? || repository.identifier.empty?
9198
puts repository.project.identifier

0 commit comments

Comments
 (0)