mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 09:03:31 +07:00
git tests: setup default username for auxiliary repositories once again
Otherwise Git tries to get a username/email from the OS settings, which sometimes fail on test server agents, and it leads to commit failure.
This commit is contained in:
@@ -154,8 +154,6 @@ class GitSubmoduleTest : GitPlatformTest() {
|
||||
git("submodule add ${FileUtil.toSystemIndependentName(submoduleUrl.path)} ${relativePath ?: ""}")
|
||||
git("commit -m 'Added submodule lib'")
|
||||
git("push origin master")
|
||||
cd(File(submoduleUrl.path))
|
||||
setupDefaultUsername()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -165,6 +163,8 @@ class GitSubmoduleTest : GitPlatformTest() {
|
||||
private fun addSubmoduleInProject(submoduleUrl: File, moduleName: String, relativePath: String? = null): GitRepository {
|
||||
addSubmodule(File(projectPath), submoduleUrl, relativePath)
|
||||
val rootPath = "${projectPath}/${relativePath ?: moduleName}"
|
||||
cd(rootPath)
|
||||
setupDefaultUsername()
|
||||
return registerRepo(project, rootPath)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user