We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee877a0 commit 1e2e6d9Copy full SHA for 1e2e6d9
{{cookiecutter.project_name}}/scripts/setup-git.py
@@ -22,7 +22,7 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
22
commands: list[list[str]] = [
23
["git", "init"],
24
["git", "branch", "-M", "main"],
25
- ["git", "remote", "add", "origin", f"https://github.com/{github_user}/{repo_name}.git", "||", "true"],
+ ["git", "remote", "add", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
26
["git", "remote", "set-url", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
27
["git", "fetch", "origin"],
28
["git", "push", "-u", "origin", "main"],
@@ -35,7 +35,7 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
35
check_dependencies(path=path, dependencies=["git"])
36
37
for command in commands:
38
- subprocess.run(command, cwd=path, capture_output=True)
+ subprocess.run(command, cwd=path, stdout=subprocess.STDOUT, stderr=subprocess.STDOUT)
39
40
41
def get_parser() -> argparse.ArgumentParser:
0 commit comments