Skip to content

Commit 1e2e6d9

Browse files
committed
fix: adjust syntax in setup-git.py
1 parent ee877a0 commit 1e2e6d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

{{cookiecutter.project_name}}/scripts/setup-git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
2222
commands: list[list[str]] = [
2323
["git", "init"],
2424
["git", "branch", "-M", "main"],
25-
["git", "remote", "add", "origin", f"https://github.com/{github_user}/{repo_name}.git", "||", "true"],
25+
["git", "remote", "add", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
2626
["git", "remote", "set-url", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
2727
["git", "fetch", "origin"],
2828
["git", "push", "-u", "origin", "main"],
@@ -35,7 +35,7 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
3535
check_dependencies(path=path, dependencies=["git"])
3636

3737
for command in commands:
38-
subprocess.run(command, cwd=path, capture_output=True)
38+
subprocess.run(command, cwd=path, stdout=subprocess.STDOUT, stderr=subprocess.STDOUT)
3939

4040

4141
def get_parser() -> argparse.ArgumentParser:

0 commit comments

Comments
 (0)