mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
force default branch name for tests
This commit is contained in:
parent
9eccd9c35b
commit
34e97023f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue