From a457c1d05eed17f25cb89684157e5a95f2eb014b Mon Sep 17 00:00:00 2001 From: ansgarz Date: Thu, 31 Aug 2023 23:28:52 +0200 Subject: [PATCH] [skip ci] chg/add cmts git clone --- .../provs/framework/ubuntu/git/base/Git.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/git/base/Git.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/git/base/Git.kt index d1bbe23..47b35f3 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/git/base/Git.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/ubuntu/git/base/Git.kt @@ -30,10 +30,13 @@ fun Prov.gitClone( ProvResult(true, out = "Repo [$pathWithBasename] already exists, but might not be up-to-date.") } } else { - // create targetPath (if not yet existing) + // create targetPath if not yet existing if (!checkDir(targetPath)) { createDirs(targetPath) } + + // Note that all output of git clone on Linux is shown in stderr (normal progress info AND errors), + // which might be confusing in the logfile. cmd("cd $targetPath && git clone $repoSource ${targetFolderName ?: ""}") } }