The apply_configuration.py script attempts to detect whether the repository is still the original starter template by checking if .git/config contains the following remote URL:
git@github.com:tomsilver/python-starter.git
However, if the repository is cloned using HTTPS, the .git/config contains:
https://github.com/tomsilver/python-starter.git
As a result, the script fails to recognize the starter repo and does not delete the .git/ directory, leading to downstream issues such as:
git checkout -b main fails because the main branch already exists
- Repository is not properly re-initialized