Skip to content

Commit 278fc41

Browse files
authored
Fix gh repo create command for the Windows command prompt (#412)
In the *Festival of Digital Research and Scholarship* workshop: @LLapira spotted that our command is broken on the Windows command prompt: needs double quotes otherwise it thinks this is five individual arguments.
1 parent 62a59e1 commit 278fc41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hooks/post_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def main(initialise_git_repository: str, deploy_docs_to_github_pages: str) -> in
6363
"GitHub CLI detected, you can create a repo with the following:\n\n"
6464
"gh repo create "
6565
"{{cookiecutter.github_username}}/{{cookiecutter.project_slug}} "
66-
"-d '{{cookiecutter.project_short_description}}' "
66+
'-d "{{cookiecutter.project_short_description}}" '
6767
"--public "
6868
"-r origin "
6969
"--source {{cookiecutter.project_slug}}\n"

tests/test_git_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_initialisation_of_git_repo(
7777
"GitHub CLI detected, you can create a repo with the following:\n\n"
7878
f"gh repo create {project_config['github_username']}/"
7979
f"{project_config['expected_repo_name']} -d "
80-
f"'{project_config['project_short_description']}' --public -r "
80+
f"\"{project_config['project_short_description']}\" --public -r "
8181
f"origin --source {project_config['expected_repo_name']}"
8282
in cookie.stdout
8383
)

0 commit comments

Comments
 (0)