Use detached-head for the git checkouts