Skip to content

Commit a0e39e6

Browse files
LadyNamedLauraroot
authored andcommitted
don't update empty projects
1 parent 9fed8f4 commit a0e39e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/redmine_git_hosting/gitolite_wrappers/projects/update_projects.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ def call
77
return if git_projects.empty?
88
admin.transaction do
99
git_projects.each do |project|
10-
handle_project_update(project)
11-
gitolite_admin_repo_commit(project.identifier)
10+
if project.gitolite_repos.any?
11+
handle_project_update(project)
12+
gitolite_admin_repo_commit(project.identifier)
13+
end
1214
end
1315
end
1416
end

0 commit comments

Comments
 (0)