Merge pull request #2393 from gaige/set-default-branch-for-tests-2391

force default branch name for tests
This commit is contained in:
Anthony Sottile 2022-05-14 22:21:07 -04:00 committed by GitHub
commit e93c1c6f27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ def copy_tree_to_path(src_dir, dest_dir):
def git_dir(tempdir_factory):
path = tempdir_factory.get()
cmd_output('git', 'init', path)
cmd_output('git', '-c', 'init.defaultBranch=master', 'init', path)
return path