diff --git a/pipeline/checkout/src/test/kotlin/org/archguard/action/checkout/GitSourceSettingsTest.kt b/pipeline/checkout/src/test/kotlin/org/archguard/action/checkout/GitSourceSettingsTest.kt index f733068..68d884a 100644 --- a/pipeline/checkout/src/test/kotlin/org/archguard/action/checkout/GitSourceSettingsTest.kt +++ b/pipeline/checkout/src/test/kotlin/org/archguard/action/checkout/GitSourceSettingsTest.kt @@ -9,9 +9,13 @@ class GitSourceSettingsTest { val repository = "https://github.com/archguard/codedb" val branch = "master" - val settings = GitSourceSettings.fromArgs(arrayOf("--repository", repository, "--branch", branch)) - settings.workdir = ".tmp" - settings.repositoryPath = ".tmp" + java.io.File.separator + repository.substringAfterLast("/") +// val settings = GitSourceSettings.fromArgs(arrayOf("--repository", repository, "--branch", branch)) +// settings.workdir = ".tmp" + val settings = GitSourceSettings( + repository = repository, + branch = branch, + workdir = ".tmp", + ) val commandManager = GitCommandManager(settings.repositoryPath) doCheckout(commandManager, settings)