summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorValentin Gorelov <gorelov.v@bpa.ru>2018-11-22 12:25:20 +0300
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-11-22 20:28:28 +0100
commite730d8b28ea2cb604e4199cf26bd553b6ad47b2e (patch)
tree26a70376bbdf069919859fcf8afa1e055224c914 /scripts
parentb4135653ee62c67cba7a7ba20227246ec18477c5 (diff)
downloadptxdist-e730d8b28ea2cb604e4199cf26bd553b6ad47b2e.tar.gz
ptxdist-e730d8b28ea2cb604e4199cf26bd553b6ad47b2e.tar.xz
ptxd_make_get_git: add local Git repositories support
Signed-off-by: Valentin Gorelov <gorelov.v@bpa.ru> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_make_get.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh
index 17c515644..70de52143 100644
--- a/scripts/lib/ptxd_make_get.sh
+++ b/scripts/lib/ptxd_make_get.sh
@@ -394,6 +394,10 @@ ptxd_make_get() {
shift
case "${url}" in
+ git+file://*)
+ echo "local git repository, removing git+file:// prefix from URL"
+ url=${url#git+file://}
+ ;&
git://*|http://*.git|https://*.git|ssh://*.git)
ptxd_make_get_download_permitted &&
ptxd_make_get_git && return