Skip to content

Commit b6f20ee

Browse files
committed
Specify initial branch in tests
Without this, when a user changes the default branch name with git config --global init.defaultBranch main the tests would fail.
1 parent 8e5fb0f commit b6f20ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/repohelpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, path=None):
1818

1919
def __enter__(self):
2020
os.makedirs(self.path, exist_ok=True)
21-
self.git('init', '--bare')
21+
self.git('init', '--bare', '--initial-branch=master')
2222
return self
2323

2424
def __exit__(self, *args):

0 commit comments

Comments
 (0)