Commit f9b00dbd authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rs-projects-update-service-parity' into 'master'

Bring CE-EE parity to app/services/projects/update_service.rb

See merge request gitlab-org/gitlab-ce!19117
parents 7adfc424 6b8e7a64
......@@ -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
......@@ -53,8 +55,8 @@ module Projects
def changing_default_branch?
new_branch = params[:default_branch]
project.repository.exists? &&
new_branch && new_branch != project.default_branch
new_branch && project.repository.exists? &&
new_branch != project.default_branch
end
def enabling_wiki?
......
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