Commit 6b8e7a64 authored by Robert Speicher's avatar Robert Speicher

Yield to an optional block in Projects::UpdateService

See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5825#note_75764799
parent b220e020
...@@ -17,6 +17,8 @@ module Projects ...@@ -17,6 +17,8 @@ module Projects
ensure_wiki_exists if enabling_wiki? ensure_wiki_exists if enabling_wiki?
yield if block_given?
if project.update_attributes(params.except(:default_branch)) if project.update_attributes(params.except(:default_branch))
if project.previous_changes.include?('path') if project.previous_changes.include?('path')
project.rename_repo project.rename_repo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment