From 7c809121a39736c891574c757685f5ff6671a540 Mon Sep 17 00:00:00 2001 From: RoB Murdock Date: Thu, 19 Sep 2024 23:34:20 -0400 Subject: [PATCH] [patch] fixing inconsistent configuration issue... another one --- tools/git-adapter/build.gradle.kts | 2 ++ .../kotlin/com/zegreatrob/tools/adapter/git/GitAdapterTest.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/git-adapter/build.gradle.kts b/tools/git-adapter/build.gradle.kts index b8887d9e..ee6878e3 100644 --- a/tools/git-adapter/build.gradle.kts +++ b/tools/git-adapter/build.gradle.kts @@ -26,6 +26,8 @@ dependencies { tasks { named("jvmTest") { useJUnitPlatform() + environment("GIT_CONFIG_GLOBAL", "/dev/null") + environment("GIT_CONFIG_SYSTEM", "/dev/null") } formatKotlinCommonMain { exclude { spec -> spec.file.absolutePath.contains("generated-sources") } diff --git a/tools/git-adapter/src/jvmTest/kotlin/com/zegreatrob/tools/adapter/git/GitAdapterTest.kt b/tools/git-adapter/src/jvmTest/kotlin/com/zegreatrob/tools/adapter/git/GitAdapterTest.kt index 403d0eca..553fc10e 100644 --- a/tools/git-adapter/src/jvmTest/kotlin/com/zegreatrob/tools/adapter/git/GitAdapterTest.kt +++ b/tools/git-adapter/src/jvmTest/kotlin/com/zegreatrob/tools/adapter/git/GitAdapterTest.kt @@ -29,6 +29,8 @@ class GitAdapterTest { @Test fun `will include all tag segments from newest to oldest`() { val (_, gitAdapter) = initializeGitRepo(commits = listOf("here's a message")) + gitAdapter.config("user.name", "Test") + gitAdapter.config("user.email", "Test") gitAdapter.newAnnotatedTag("v1.0", "HEAD", null, null) delayLongEnoughToAffectGitDate() gitAdapter.addCommitWithMessage("here's a message")