From c1c0123552e396b16c9e90a8259c3870d163c1a8 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Fri, 8 Dec 2023 17:33:30 +0800 Subject: [PATCH] fix: fix typos --- .../main/kotlin/cc/unitmesh/pick/picker/SimpleCodePicker.kt | 4 ++-- .../main/kotlin/cc/unitmesh/pick/walker/DirectoryWalker.kt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/unit-picker/src/main/kotlin/cc/unitmesh/pick/picker/SimpleCodePicker.kt b/unit-picker/src/main/kotlin/cc/unitmesh/pick/picker/SimpleCodePicker.kt index ae5a0bf0..ee68dc52 100644 --- a/unit-picker/src/main/kotlin/cc/unitmesh/pick/picker/SimpleCodePicker.kt +++ b/unit-picker/src/main/kotlin/cc/unitmesh/pick/picker/SimpleCodePicker.kt @@ -143,8 +143,6 @@ class SimpleCodePicker(private val config: PickerConfig) : CodePicker { branch = branch, workdir = baseDir.absolutePathString(), ) - executeGitCheckout(settings) - val sourceRepoDir = baseDir.resolve(settings.repositoryPath) try { Files.createDirectories(targetDir.parent) @@ -152,6 +150,8 @@ class SimpleCodePicker(private val config: PickerConfig) : CodePicker { logger.info("create dir failed: ${targetDir.parent}") } + executeGitCheckout(settings) + logger.info("targetDir: $targetDir") simpleCodePicker.moveRepository(sourceRepoDir, targetDir) return targetDir diff --git a/unit-picker/src/main/kotlin/cc/unitmesh/pick/walker/DirectoryWalker.kt b/unit-picker/src/main/kotlin/cc/unitmesh/pick/walker/DirectoryWalker.kt index 68470c0b..ad8a4d79 100644 --- a/unit-picker/src/main/kotlin/cc/unitmesh/pick/walker/DirectoryWalker.kt +++ b/unit-picker/src/main/kotlin/cc/unitmesh/pick/walker/DirectoryWalker.kt @@ -38,7 +38,6 @@ class PickDirectoryWalker(private val output: Channel, private val excl } } } else { - println("start walk: $workdir") createDirJob(workdir, workdir) } }