Skip to content

Commit

Permalink
[patch] fixing inconsistent configuration issue... another one
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfmurdock committed Sep 20, 2024
1 parent 541fb5e commit 7c80912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/git-adapter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ dependencies {
tasks {
named<Test>("jvmTest") {
useJUnitPlatform()
environment("GIT_CONFIG_GLOBAL", "/dev/null")
environment("GIT_CONFIG_SYSTEM", "/dev/null")
}
formatKotlinCommonMain {
exclude { spec -> spec.file.absolutePath.contains("generated-sources") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7c80912

Please sign in to comment.