File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,15 +77,13 @@ def _main() -> None:
7777
7878 # Delete the existing git files if they are from the starter repo.
7979 git_repo = outer_dir / ".git"
80- using_ssh = True
8180 if git_repo .exists ():
8281 git_config_file = git_repo / "config"
8382 with open (git_config_file , "r" , encoding = "utf-8" ) as fp :
8483 git_config_contents = fp .read ()
8584 if "git@github.com:tomsilver/python-starter.git" in git_config_contents :
8685 shutil .rmtree (git_repo )
8786 elif "https://github.com/tomsilver/python-starter.git" in git_config_contents :
88- using_ssh = False
8987 shutil .rmtree (git_repo )
9088
9189 # Initialize the repo anew.
@@ -106,10 +104,7 @@ def _main() -> None:
106104 # Remote doesn't exist, so add the URL.
107105 else :
108106 remote_command = "add"
109- if using_ssh :
110- github_url = f"git@github.com:{ github_username } /{ repo_name } .git"
111- else :
112- github_url = f"https://github.com/{ github_username } /{ repo_name } .git"
107+ github_url = f"git@github.com:{ github_username } /{ repo_name } .git"
113108 subprocess .run (
114109 [
115110 "git" ,
You can’t perform that action at this time.
0 commit comments