From 6b8e7a646a8cafdc6fa9b51a62638741bf3afb73 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Mon, 4 Jun 2018 11:40:21 -0500 Subject: Yield to an optional block in Projects::UpdateService See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5825#note_75764799 --- app/services/projects/update_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/projects/update_service.rb b/app/services/projects/update_service.rb index 2e1f28ec081..0e489ec5e86 100644 --- a/app/services/projects/update_service.rb +++ b/app/services/projects/update_service.rb @@ -17,6 +17,8 @@ module Projects ensure_wiki_exists if enabling_wiki? + yield if block_given? + if project.update_attributes(params.except(:default_branch)) if project.previous_changes.include?('path') project.rename_repo -- cgit v1.2.1