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>
This commit is contained in:
parent
860360629d
commit
c8d16e6978
@ -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