Skip to content

Commit 85cc5e5

Browse files
authored
Merge pull request #8 from tomsilver/fix-git
make git branch command compatible with older versions of git
2 parents 1aab42d + b7f1d31 commit 85cc5e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apply_configuration.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def _main() -> None:
8585
shutil.rmtree(git_repo)
8686

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

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

0 commit comments

Comments
 (0)