Skip to content

Commit

Permalink
Merge pull request #8 from tomsilver/fix-git
Browse files Browse the repository at this point in the history
make git branch command compatible with older versions of git
  • Loading branch information
tomsilver authored Oct 23, 2024
2 parents 1aab42d + b7f1d31 commit 85cc5e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apply_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def _main() -> None:
shutil.rmtree(git_repo)

# Initialize the repo anew.
subprocess.run(["git", "init", "-b", "main"], check=True, capture_output=True)
subprocess.run(["git", "init"], check=True, capture_output=True)
subprocess.run(["git", "checkout", "-b", "main"], check=True, capture_output=True)
subprocess.run(["git", "add", "."], check=True, capture_output=True)

# Check if the remote already exists (if this script is being run twice).
Expand Down

0 comments on commit 85cc5e5

Please sign in to comment.