diff --git a/e2e_tests/helpers.py b/e2e_tests/helpers.py index a527d6b..12285a6 100644 --- a/e2e_tests/helpers.py +++ b/e2e_tests/helpers.py @@ -262,7 +262,7 @@ class TempGitFileRemote: shell( f""" cd {self.tmpdir.name} - git init + git -c init.defaultBranch=master init echo test > root-commit-in-remote-1 git add root-commit-in-remote-1 git commit -m "root-commit-in-remote-1" diff --git a/e2e_tests/test_repos_find.py b/e2e_tests/test_repos_find.py index 9f97c6d..59b0078 100644 --- a/e2e_tests/test_repos_find.py +++ b/e2e_tests/test_repos_find.py @@ -73,7 +73,7 @@ def test_repos_find(configtype, default): mkdir repo1 ( cd ./repo1 - git init + git -c init.defaultBranch=master init echo test > test git add test git commit -m "commit1" @@ -83,7 +83,7 @@ def test_repos_find(configtype, default): mkdir repo2 ( cd ./repo2 - git init + git -c init.defaultBranch=master init git checkout -b main echo test > test git add test @@ -203,7 +203,7 @@ def test_repos_find_with_invalid_repo(configtype, default): mkdir repo1 ( cd ./repo1 - git init + git -c init.defaultBranch=master init echo test > test git add test git commit -m "commit1" @@ -213,7 +213,7 @@ def test_repos_find_with_invalid_repo(configtype, default): mkdir repo2 ( cd ./repo2 - git init + git -c init.defaultBranch=master init git checkout -b main echo test > test git add test