Skip to content

Commit

Permalink
chore(testing): force default branch name for tests
Browse files Browse the repository at this point in the history
(cherry picked from commit 34e9702)

Reference: pre-commit/pre-commit@34e9702
Reference: pre-commit/pre-commit#2393
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
  • Loading branch information
gaige authored and ljmf00 committed May 26, 2022
1 parent e979690 commit 1f87b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/fixtures.py
Expand Up @@ -37,7 +37,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


Expand Down

0 comments on commit 1f87b3a

Please sign in to comment.