e2e-tests: Make commit messages more obvious

This commit is contained in:
2021-12-31 10:53:16 +01:00
parent fc91ee7a01
commit 9f6c84d78c

View File

@@ -122,9 +122,9 @@ class TempGitRepository:
f""" f"""
cd {self.tmpdir.name} cd {self.tmpdir.name}
git init git init
echo test > test echo test > root-commit
git add test git add root-commit
git commit -m "commit1" git commit -m "root-commit"
git remote add origin file://{self.remote_1_dir.name} git remote add origin file://{self.remote_1_dir.name}
git remote add otherremote file://{self.remote_2_dir.name} git remote add otherremote file://{self.remote_2_dir.name}
""" """
@@ -161,12 +161,12 @@ class TempGitRepositoryWorktree:
f""" f"""
cd {self.tmpdir.name} cd {self.tmpdir.name}
git init git init
echo test > test echo test > root-commit-in-worktree-1
git add test git add root-commit-in-worktree-1
git commit -m "commit1" git commit -m "root-commit-in-worktree-1"
echo test > test2 echo test > root-commit-in-worktree-2
git add test2 git add root-commit-in-worktree-2
git commit -m "commit2" git commit -m "root-commit-in-worktree-2"
git remote add origin file://{self.remote_1_dir.name} git remote add origin file://{self.remote_1_dir.name}
git remote add otherremote file://{self.remote_2_dir.name} git remote add otherremote file://{self.remote_2_dir.name}
git push origin HEAD:master git push origin HEAD:master
@@ -228,12 +228,12 @@ class TempGitFileRemote:
f""" f"""
cd {self.tmpdir.name} cd {self.tmpdir.name}
git init git init
echo test > test echo test > root-commit-in-remote-1
git add test git add root-commit-in-remote-1
git commit -m "commit1" git commit -m "root-commit-in-remote-1"
echo test > test2 echo test > root-commit-in-remote-2
git add test2 git add root-commit-in-remote-2
git commit -m "commit2" git commit -m "root-commit-in-remote-2"
git ls-files | xargs rm -rf git ls-files | xargs rm -rf
mv .git/* . mv .git/* .
git config core.bare true git config core.bare true