Manual merge request clone commands no longer work
It seems that Git >= 2.16 no longer works with our manual merge request checkout commands. Specifically the command with FETCH_HEAD
in it. Both @balasankarc and I have experienced this. I'm on Git 2.16 and he's on 2.17.
$ git fetch git@gitlab.com:hmhealey/gitlab-ce.git mattermost-api-v4
remote: Counting objects: 34, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 34 (delta 28), reused 0 (delta 0)
Unpacking objects: 100% (34/34), done.
From gitlab.com:hmhealey/gitlab-ce
* branch mattermost-api-v4 -> FETCH_HEAD
$ git checkout -b hmhealey/gitlab-ce-mattermost-api-v4 FETCH_HEAD
fatal: 'FETCH_HEAD' is not a commit and a branch 'hmhealey/gitlab-ce-mattermost-api-v4' cannot be created from it
@balasankarc found some release notes for 2.16 which seem to mention that HEAD (and presumably FETCH_HEAD) are no longer valid branch names - https://github.com/git/git/blob/master/Documentation/RelNotes/2.16.0.txt#L82