Skip to content

🐛 Bug: apply_configuration.py fails to delete .git directory when repo is cloned via HTTPS #11

@RKJenamani

Description

@RKJenamani

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions