@@ -21,10 +21,12 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
2121 """Set up the provided cookiecutter-robust-python project's git repo."""
2222 commands : list [list [str ]] = [
2323 ["git" , "init" ],
24- ["git" , "branch" , "-M" , "main" ],
24+ ["git" , "branch" , "-m" , "master" , "main" ],
25+ ["git" , "checkout" , "main" ],
2526 ["git" , "remote" , "add" , "origin" , f"https://github.com/{ github_user } /{ repo_name } .git" ],
2627 ["git" , "remote" , "set-url" , "origin" , f"https://github.com/{ github_user } /{ repo_name } .git" ],
2728 ["git" , "fetch" , "origin" ],
29+ ["git" , "pull" ],
2830 ["git" , "push" , "-u" , "origin" , "main" ],
2931 ["git" , "checkout" , "-b" , "develop" , "main" ],
3032 ["git" , "push" , "-u" , "origin" , "develop" ],
@@ -35,7 +37,7 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
3537 check_dependencies (path = path , dependencies = ["git" ])
3638
3739 for command in commands :
38- subprocess .run (command , cwd = path , stdout = subprocess . STDOUT , stderr = subprocess .STDOUT )
40+ subprocess .run (command , cwd = path , stderr = subprocess .STDOUT )
3941
4042
4143def get_parser () -> argparse .ArgumentParser :
0 commit comments