ref: 3e5cd8ce1ab3294217c14b05ccd4ee6caa28e280
dir: /test/fetch-test-deps.sh/
#!/usr/bin/env bash set -e cd "$(dirname "$0")" echo "Fetching test dependency repositories" fetch_downstream() { # owner/repo shallow-since commit if [ ! -d ${1##*/} ]; then git clone https://github.com/$1.git --shallow-since=$2 --single-branch fi pushd ${1##*/} git checkout -f $3 if [ -f ../patches/${1##*/}.patch ]; then git apply --ignore-whitespace ../patches/${1##*/}.patch fi popd } fetch_downstream pret/pokecrystal 2022-09-29 70a3ec1accb6de1c1c273470af0ddfa2edc1b0a9 fetch_downstream pret/pokered 2022-09-29 2b52ceb718b55dce038db24d177715ae4281d065 fetch_downstream AntonioND/ucity 2022-04-20 d8878233da7a6569f09f87b144cb5bf140146a0f