WIP: Restore Rugged version of FindDefaultBranchName for 11.5.7 EE
By putting back Rugged, this eliminates many system calls called by FindDefaultBranchName
(see https://gitlab.com/gitlab-org/gitlab-ce/issues/57113#note_140666714):
To apply this patch:
curl -o /tmp/9529.patch https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9529.diff
cd /opt/gitlab/embedded/service/gitlab-rails
patch -p1 < /tmp/9529.patch
Edited by Stan Hu