Fix scm tests to not use user configuration

If you configure default branch name in new repos to anything else than
master, there will be failures in tests. The test expects the branch to
be called master, but does not ensure it in any way.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit c8d16e6978)
This commit is contained in:
Lubomír Sedlář 2024-01-19 14:11:37 +01:00 committed by Stepan Oksanichenko
parent 27d055992e
commit dc4e8b2fb7
Signed by: soksanichenko
GPG Key ID: AB9983172AB1E45B

View File

@ -317,6 +317,8 @@ class GitSCMTestCaseReal(SCMBaseTest):
"git",
"--git-dir=%s" % git_dir,
"--work-tree=%s" % self.gitRepositoryLocation,
"-c",
"init.defaultBranch=master",
"init",
],
workdir=self.gitRepositoryLocation,