Skip to content

Commit 4b48551

Browse files
committed
feat: adjust setup-remote to fetch after creation of the remote instead of before
1 parent ae33027 commit 4b48551

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ def main() -> None:
2121
def setup_remote(path: Path, repository_host: str, repository_path: str) -> None:
2222
"""Set up the provided cookiecutter-robust-python project's git repo."""
2323
commands: list[list[str]] = [
24-
["git", "fetch", "origin"],
2524
["git", "remote", "add", "origin", f"https://{repository_host}/{repository_path}.git"],
2625
["git", "remote", "set-url", "origin", f"https://{repository_host}/{repository_path}.git"],
27-
["git", "pull"],
26+
["git", "fetch", "origin"],
2827
["git", "checkout", "main"],
2928
["git", "push", "-u", "origin", "main"],
3029
["git", "checkout", "develop"],

0 commit comments

Comments
 (0)