Skip to content

Commit 7350b47

Browse files
LadyNamedLauraSimon Peeters
authored and
Simon Peeters
committed
don't update empty projects
1 parent 14bee3c commit 7350b47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: lib/redmine_git_hosting/gitolite_wrappers/projects/update_projects.rb

+4-2
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)