Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34e9702

Browse files
gaigeasottile
authored andcommitted
force default branch name for tests
1 parent 9eccd9c commit 34e9702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testing/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def copy_tree_to_path(src_dir, dest_dir):
3838

3939
def git_dir(tempdir_factory):
4040
path = tempdir_factory.get()
41-
cmd_output('git', 'init', path)
41+
cmd_output('git', '-c', 'init.defaultBranch=master', 'init', path)
4242
return path
4343

4444

0 commit comments

Comments
 (0)