From c0d0922d8ca94293debc2020a48e109f94875573 Mon Sep 17 00:00:00 2001 From: Axel H Date: Fri, 22 Oct 2021 16:02:34 +0200 Subject: [PATCH] fix(tests): ensures init.defaultBranch does not break the tests --- testing/fixtures.py | 2 +- tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/fixtures.py b/testing/fixtures.py index f7def081..8eb9fb79 100644 --- a/testing/fixtures.py +++ b/testing/fixtures.py @@ -36,7 +36,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', 'init', '-b', 'master', path) return path diff --git a/tests/conftest.py b/tests/conftest.py index f38f9693..252dd7da 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -63,7 +63,7 @@ def in_tmpdir(tempdir_factory): def in_git_dir(tmpdir): repo = tmpdir.join('repo').ensure_dir() with repo.as_cwd(): - cmd_output('git', 'init') + cmd_output('git', 'init', '-b', 'master') yield repo