This fixes the fact that specifying the default branch fails because the that branch already exists when trying to check it out. This will skip if the default branch is is specified because we assume that we cloned the default branch.
I do not want to (yet) skip checkout if the branch exists since we assume that the branch shouldn't exist at all and would rather throw an error than create non-deterministic results.
Summary
This fixes the fact that specifying the default branch fails because the that branch already exists when trying to check it out. This will skip if the default branch is is specified because we assume that we cloned the default branch.
I do not want to (yet) skip checkout if the branch exists since we assume that the branch shouldn't exist at all and would rather throw an error than create non-deterministic results.