diff options
author | Valentin Gorelov <gorelov.v@bpa.ru> | 2018-11-22 12:25:20 +0300 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-22 20:28:28 +0100 |
commit | e730d8b28ea2cb604e4199cf26bd553b6ad47b2e (patch) | |
tree | 26a70376bbdf069919859fcf8afa1e055224c914 /scripts | |
parent | b4135653ee62c67cba7a7ba20227246ec18477c5 (diff) | |
download | ptxdist-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.sh | 4 |
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 |