summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2018-06-04 11:40:21 -0500
committerRobert Speicher <rspeicher@gmail.com>2018-06-04 12:00:04 -0500
commit6b8e7a646a8cafdc6fa9b51a62638741bf3afb73 (patch)
treec8be73010e269d4dfa664fe30c7fd80e1ab73407
parentb220e020b7d1c2ee74aa1f80d3eca288190748b7 (diff)
downloadgitlab-ce-rs-projects-update-service-parity.tar.gz
Yield to an optional block in Projects::UpdateServicers-projects-update-service-parity
See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5825#note_75764799
-rw-r--r--app/services/projects/update_service.rb2
1 files changed, 2 insertions, 0 deletions
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