Skip to content

Commit

Permalink
fix: change git setup commands to work with older git versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pppmlt committed Aug 31, 2022
1 parent f629096 commit 82ed3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

# initialize new project repository
subprocess.run(["git", "init"], check=True)
subprocess.run(["git", "branch", "-m", "main"], check=True)
subprocess.run(["git", "add", "."], check=True)
subprocess.run(
["git", "commit", "-m", "chore: initialize repo from data science template"], check=True
)
subprocess.run(["git", "branch", "-m", "main"], check=True)
subprocess.run(["git", "remote", "add", "origin", "{{cookiecutter.repo_url}}"], check=True)

# setup environment
Expand Down

0 comments on commit 82ed3ce

Please sign in to comment.