Resolve "Squash commits fails for branches named HEAD"
Closes #1861 (closed).
I'm not adding a spec, because I don't want to confuse people using the gitlab-test
repo. I checked with @chriscool and this should refer to the 'current commit' HEAD, not the ref with the same name.
Demo: