GitLab EE 9.4.2 - `git pull --rebase` fails
Steps to reproduce:
- Have a Merge Request with approvals required & outdated from master
- Press rebase button
- Rebase will not work (thus unable to approve&merge)
- This will appear in the logs
root@gitlab:/# grep -i rebaseservice /var/log/gitlab/ -R
/var/log/gitlab/gitlab-rails/githost.log:August 03, 2017 10:05 -> ERROR -> Merge
Requests::RebaseService error (group/repo!1289): Failed to rebase branch wi
th `/opt/gitlab/embedded/bin/git pull --rebase /var/opt/gitlab/git-data/reposito
ries/group/repo.git master`:
/var/log/gitlab/gitlab-rails/githost.log:August 03, 2017 10:05 -> ERROR -> Merge
Requests::RebaseService error (group/repo!1289): First, rewinding head to r
eplay your work on top of it...
/var/log/gitlab/gitlab-rails/githost.log:August 03, 2017 11:26 -> ERROR -> Merge
Requests::RebaseService error (group/repo!1289): Failed to rebase branch wi
th `/opt/gitlab/embedded/bin/git pull --rebase /var/opt/gitlab/git-data/reposito
ries/group/repo.git master`:
/var/log/gitlab/gitlab-rails/githost.log:August 03, 2017 11:26 -> ERROR -> Merge
Requests::RebaseService error (group/repo!1289): First, rewinding head to r
eplay your work on top of it...
root@gitlab:/#
From https://gitlab.com/gitlab-org/gitlab-ee/issues/2979#note_36656234