e2e: Fix warning about default branch name
This commit is contained in:
@@ -262,7 +262,7 @@ class TempGitFileRemote:
|
|||||||
shell(
|
shell(
|
||||||
f"""
|
f"""
|
||||||
cd {self.tmpdir.name}
|
cd {self.tmpdir.name}
|
||||||
git init
|
git -c init.defaultBranch=master init
|
||||||
echo test > root-commit-in-remote-1
|
echo test > root-commit-in-remote-1
|
||||||
git add root-commit-in-remote-1
|
git add root-commit-in-remote-1
|
||||||
git commit -m "root-commit-in-remote-1"
|
git commit -m "root-commit-in-remote-1"
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ def test_repos_find(configtype, default):
|
|||||||
mkdir repo1
|
mkdir repo1
|
||||||
(
|
(
|
||||||
cd ./repo1
|
cd ./repo1
|
||||||
git init
|
git -c init.defaultBranch=master init
|
||||||
echo test > test
|
echo test > test
|
||||||
git add test
|
git add test
|
||||||
git commit -m "commit1"
|
git commit -m "commit1"
|
||||||
@@ -83,7 +83,7 @@ def test_repos_find(configtype, default):
|
|||||||
mkdir repo2
|
mkdir repo2
|
||||||
(
|
(
|
||||||
cd ./repo2
|
cd ./repo2
|
||||||
git init
|
git -c init.defaultBranch=master init
|
||||||
git checkout -b main
|
git checkout -b main
|
||||||
echo test > test
|
echo test > test
|
||||||
git add test
|
git add test
|
||||||
@@ -203,7 +203,7 @@ def test_repos_find_with_invalid_repo(configtype, default):
|
|||||||
mkdir repo1
|
mkdir repo1
|
||||||
(
|
(
|
||||||
cd ./repo1
|
cd ./repo1
|
||||||
git init
|
git -c init.defaultBranch=master init
|
||||||
echo test > test
|
echo test > test
|
||||||
git add test
|
git add test
|
||||||
git commit -m "commit1"
|
git commit -m "commit1"
|
||||||
@@ -213,7 +213,7 @@ def test_repos_find_with_invalid_repo(configtype, default):
|
|||||||
mkdir repo2
|
mkdir repo2
|
||||||
(
|
(
|
||||||
cd ./repo2
|
cd ./repo2
|
||||||
git init
|
git -c init.defaultBranch=master init
|
||||||
git checkout -b main
|
git checkout -b main
|
||||||
echo test > test
|
echo test > test
|
||||||
git add test
|
git add test
|
||||||
|
|||||||
Reference in New Issue
Block a user