Skip to content

Commit 3e2b3b5

Browse files
committed
Update initialization file to clarify usage and improve repository cleanup logic
1 parent a70cd63 commit 3e2b3b5

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

apply_configuration.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
"""A file for initializing the repository.
22
33
This file should be deleted after initial setup.
4+
5+
Please do not run this file if you are user "MTDickens" and have just cloned the
6+
repository for the sole purpose of contributing to the repository itself.
7+
8+
This file is only meant for users who have cloned the repository as a template for their
9+
own work.
410
"""
511

612
import json
@@ -81,9 +87,15 @@ def _main() -> None:
8187
git_config_file = git_repo / "config"
8288
with open(git_config_file, encoding="utf-8") as fp:
8389
git_config_contents = fp.read()
84-
if "git@github.com:tomsilver/python-starter.git" in git_config_contents:
90+
if (
91+
"git@github.com:MTDickens/research-code-python-starter-template"
92+
in git_config_contents
93+
):
8594
shutil.rmtree(git_repo)
86-
elif "https://github.com/tomsilver/python-starter.git" in git_config_contents:
95+
elif (
96+
"https://github.com/MTDickens/research-code-python-starter-template"
97+
in git_config_contents
98+
):
8799
shutil.rmtree(git_repo)
88100

89101
# Initialize the repo anew.

0 commit comments

Comments
 (0)