summaryrefslogtreecommitdiffstats
path: root/core/includes
diff options
context:
space:
mode:
authorSimon Rettberg2021-07-09 14:14:34 +0200
committerSimon Rettberg2021-07-09 14:14:34 +0200
commit9b9e3b19cdccf5e442c129d4814da7987afb16a7 (patch)
tree803302a75fd40c039cf2eb35055001c2c5053570 /core/includes
parentRequire explicit confgig for distcc/ccache, print local config (diff)
downloadmltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.gz
mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.xz
mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.zip
Use autoclone where possible
Diffstat (limited to 'core/includes')
-rw-r--r--core/includes/downloader.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/includes/downloader.inc b/core/includes/downloader.inc
index 4d4d23ba..7de0945d 100644
--- a/core/includes/downloader.inc
+++ b/core/includes/downloader.inc
@@ -110,6 +110,12 @@ download_if_empty() {
download "$SRC" "$DST"
}
+# Clone the REQUIRED_GIT git repositories.
+# Syntax is:
+# <url>
+# <url>|branch
+# <url>||commit-ish
+# Second syntax is mostly for git servers that don't accept a non-branch when shallow-cloning
autoclone () {
[ -z "$REQUIRED_GIT" ] && return 0
local url branch dst dstdir checkout