Commit b220e020 authored by Robert Speicher's avatar Robert Speicher

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

parent 3571b97e
...@@ -53,8 +53,8 @@ module Projects ...@@ -53,8 +53,8 @@ module Projects
def changing_default_branch? def changing_default_branch?
new_branch = params[:default_branch] new_branch = params[:default_branch]
project.repository.exists? && new_branch && project.repository.exists? &&
new_branch && new_branch != project.default_branch new_branch != project.default_branch
end end
def enabling_wiki? 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