Explicit HEAD (no branch) check and don't try to match a branch