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:
parent
b220e020b7
commit
6b8e7a646a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue