Yield to an optional block in Projects::UpdateService

See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5825#note_75764799
This commit is contained in:
Robert Speicher 2018-06-04 11:40:21 -05:00
parent b220e020b7
commit 6b8e7a646a

View file

@ -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