Reference::setAsHEAD() => setAsDetachedHEAD()
Make checkout work somewhat with some features omited