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