mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
force default branch name for tests
This commit is contained in:
committed by
Anthony Sottile
parent
9eccd9c35b
commit
34e97023f4
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user