Assume that strace project on the local server contains an appropriate
musl repository, use this repository instead of hardcoded github
location.
* ci/install-dependencies.sh (clone_repo): Use local server by default.
(musl-gcc): Un-hardcode the location of musl repository.
apt_get_install git ca-certificates
git_installed=1
}
+
+ case "$src" in
+ *://*) ;;
+ *) local url path
+ url="$(git config remote.origin.url)"
+ path="${url#*://*/}"
+ src="${url%$path}$src"
+ ;;
+ esac
+
git clone --depth=1 "$src" "$dst"
}
apt_get_install $common_packages "$CC"
;;
musl-gcc)
- clone_repo https://github.com/strace/musl musl
+ clone_repo strace/musl musl
apt_get_install $common_packages
cd musl
CC=gcc