From 44d393bc38ad8586ca35fca38adae710beff4c2a Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 6 Mar 2019 23:14:51 -0300 Subject: [PATCH] common/travis/fetch_upstream.sh: try chroot-git then git --- common/travis/fetch_upstream.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/travis/fetch_upstream.sh b/common/travis/fetch_upstream.sh index 15efb8d0ddc..b1b06d9d54f 100755 --- a/common/travis/fetch_upstream.sh +++ b/common/travis/fetch_upstream.sh @@ -2,5 +2,11 @@ # # changed_templates.sh +if command -v chroot-git >/dev/null 2>&1; then + GIT_CMD=$(command -v chroot-git) +elif command -v git >/dev/null 2>&1; then + GIT_CMD=$(command -v git) +fi + /bin/echo -e '\x1b[32mFetching upstream...\x1b[0m' -git fetch --depth 200 git://github.com/void-linux/void-packages.git master +$GIT_CMD fetch --depth 200 git://github.com/void-linux/void-packages.git master