diff --git a/bin/clean-git-checkouts-nondestructive b/bin/clean-git-checkouts-nondestructive index c6ff6231..12c8b13d 100755 --- a/bin/clean-git-checkouts-nondestructive +++ b/bin/clean-git-checkouts-nondestructive @@ -5,7 +5,7 @@ for module in modules/*/* ; do cd "${module}" || exit echo "${module}" git status - git checkout master + git checkout master || git checkout main git fetch --all --prune git branch --delete modulesync || true git pull || true