diff options
author | Robert Speicher <rspeicher@gmail.com> | 2018-05-23 12:18:55 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2018-06-04 12:00:04 -0500 |
commit | b220e020b7d1c2ee74aa1f80d3eca288190748b7 (patch) | |
tree | 3554049dc485ab4b03d34aad9c6316ce3fa53d08 /app/services/projects | |
parent | 3571b97effd81f9a84f238f918544c6e5c625b76 (diff) | |
download | gitlab-ce-b220e020b7d1c2ee74aa1f80d3eca288190748b7.tar.gz |
Bring CE-EE parity to app/services/projects/update_service.rb
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/update_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/projects/update_service.rb b/app/services/projects/update_service.rb index 679f4a9cb62..2e1f28ec081 100644 --- a/app/services/projects/update_service.rb +++ b/app/services/projects/update_service.rb @@ -53,8 +53,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? |