HanseltimeIndustries / template-repo-sync

A project for synchronizing template repositories with configured control on both sides of the repo.
0 stars 0 forks source link

fix: skipping checkout default is specified #13

Closed hanseltime closed 2 months ago

hanseltime commented 2 months ago

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.