We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e724b7 + afdf321 commit 720d522Copy full SHA for 720d522
lib/tasks/migration_tools.rake
@@ -86,6 +86,13 @@ namespace :redmine_git_hosting do
86
# Don't update real Git repositories
87
next if repository.url.start_with?('/')
88
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
+
96
# Update Gitolite repositories
97
if repository.identifier.nil? || repository.identifier.empty?
98
puts repository.project.identifier
0 commit comments