Unable to change Default branch of a repository

Summary

The default branch on one of our repos is permanently stuck on master. Attempting to change it to a different branch yields no results.

However, we have been able to successfully change the default branch on another repo within the same gitlab instance.

Steps to reproduce

If I try changing the default branch to another branch (say develop), I select the branch in the list and click "Save Changes". image

After saving, I get the following banner implying that the changes were successfully made. image

However, upon opening the default branch section, I see that the default branch is still set to master.

image

What is the current bug behavior?

The default branch is not updated when I save my changes.

What is the expected correct behavior?

The default branch should be updated to the branch I select in the drop down list.

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

System information
System:
Proxy:		no
Current User:	git
Using RVM:	no
Ruby Version:	2.4.4p296
Gem Version:	2.7.6
Bundler Version:1.16.2
Rake Version:	12.3.1
Redis Version:	3.2.11
Git Version:	2.18.1
Sidekiq Version:5.1.3
Go Version:	unknown

GitLab information
Version:	11.3.4-ee
Revision:	14d3a1d
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	postgresql
DB Version:	9.6.8
URL:		https://code.michiganlabs.com
HTTP Clone URL:	https://code.michiganlabs.com/some-group/some-project.git
SSH Clone URL:	git@code.michiganlabs.com:some-group/some-project.git
Elasticsearch:	no
Geo:		no
Using LDAP:	yes
Using Omniauth:	yes
Omniauth Providers: google_oauth2

GitLab Shell
Version:	8.3.3
Repository storage paths:
- default: 	/var/opt/gitlab/git-data/repositories
Hooks:		/opt/gitlab/embedded/service/gitlab-shell/hooks
Git:		/opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

Checking GitLab Shell ...

GitLab Shell version >= 8.3.3 ? ... OK (8.3.3)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
7/3 ... ok
15/5 ... ok
19/6 ... ok
7/7 ... ok
24/9 ... ok
24/10 ... ok
26/11 ... ok
26/12 ... ok
28/13 ... ok
27/14 ... ok
30/15 ... ok
4/17 ... ok
31/18 ... ok
32/19 ... ok
33/20 ... ok
34/21 ... ok
31/22 ... ok
4/23 ... ok
35/24 ... ok
19/27 ... ok
37/28 ... ok
11/29 ... ok
27/30 ... ok
19/31 ... ok
36/32 ... ok
36/33 ... ok
19/34 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Reply by email is disabled in config/gitlab.yml
Checking LDAP ...

Server: ldapmain
LDAP authentication... Success
LDAP users with access to your GitLab server (only showing the first 100 results)
	[redacted]

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
7/3 ... yes
15/5 ... yes
19/6 ... yes
7/7 ... yes
24/9 ... yes
24/10 ... yes
26/11 ... yes
26/12 ... yes
28/13 ... yes
27/14 ... yes
30/15 ... yes
4/17 ... yes
31/18 ... yes
32/19 ... yes
33/20 ... yes
34/21 ... yes
31/22 ... yes
4/23 ... yes
35/24 ... yes
19/27 ... yes
37/28 ... yes
11/29 ... yes
27/30 ... yes
19/31 ... yes
36/32 ... yes
36/33 ... yes
19/34 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.4.4)
Git version >= 2.9.5 ? ... yes (2.18.1)
Git user has default SSH configuration? ... yes
Active users: ... 12
Elasticsearch version 5.1 - 5.5? ... skipped (elasticsearch is disabled)

Checking GitLab ... Finished
Edited by John DeLong