From 7648cd9426f04c5c18057cc5814bcf1a08980d75 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Fri, 8 Dec 2023 16:59:54 +0800 Subject: [PATCH] fix: fix typo --- .../archguard/action/checkout/GitSourceSettingsTest.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)