From 8c384741b307774eb1f5769dd4ca2781384fa171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 23 Jun 2022 19:00:22 +0200 Subject: [PATCH] e2e: Fix warning about default branch name --- e2e_tests/helpers.py | 2 +- e2e_tests/test_repos_find.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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