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:
parent
27d055992e
commit
dc4e8b2fb7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user