force default branch name for tests

This commit is contained in:
Gaige B. Paulsen
2022-05-14 08:28:08 -04:00
committed by Anthony Sottile
parent 9eccd9c35b
commit 34e97023f4

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