[skip ci] chg/add cmts git clone
This commit is contained in:
parent
e56abd0c47
commit
a457c1d05e
1 changed files with 4 additions and 1 deletions
|
@ -30,10 +30,13 @@ fun Prov.gitClone(
|
||||||
ProvResult(true, out = "Repo [$pathWithBasename] already exists, but might not be up-to-date.")
|
ProvResult(true, out = "Repo [$pathWithBasename] already exists, but might not be up-to-date.")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// create targetPath (if not yet existing)
|
// create targetPath if not yet existing
|
||||||
if (!checkDir(targetPath)) {
|
if (!checkDir(targetPath)) {
|
||||||
createDirs(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 ?: ""}")
|
cmd("cd $targetPath && git clone $repoSource ${targetFolderName ?: ""}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue