mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-17 19:27:05 +00:00
Determine the number of fetch/clone jobs ourselves
Apparently our CI has some versions of Git too old to support zero to mean that.
This commit is contained in:
Vendored
+2
-2
@@ -71,12 +71,12 @@ case "$actionname" in
|
|||||||
if [ ! -d "$EXT_TEST_REPO" ]; then
|
if [ ! -d "$EXT_TEST_REPO" ]; then
|
||||||
git clone "https://$EXT_TEST_DOMAIN/$EXT_TEST_OWNER/$EXT_TEST_REPO" \
|
git clone "https://$EXT_TEST_DOMAIN/$EXT_TEST_OWNER/$EXT_TEST_REPO" \
|
||||||
--revision="$EXT_TEST_COMMIT" --depth=1 --recursive --shallow-submodules \
|
--revision="$EXT_TEST_COMMIT" --depth=1 --recursive --shallow-submodules \
|
||||||
--jobs=0 --config advice.detachedHead=false
|
--jobs="$(getconf _NPROCESSORS_ONLN)" --config advice.detachedHead=false
|
||||||
pushd "$EXT_TEST_REPO"
|
pushd "$EXT_TEST_REPO"
|
||||||
else
|
else
|
||||||
pushd "$EXT_TEST_REPO"
|
pushd "$EXT_TEST_REPO"
|
||||||
git remote set-url origin "https://$EXT_TEST_DOMAIN/$EXT_TEST_OWNER/$EXT_TEST_REPO"
|
git remote set-url origin "https://$EXT_TEST_DOMAIN/$EXT_TEST_OWNER/$EXT_TEST_REPO"
|
||||||
git fetch --depth=1 --recurse-submodules --jobs=0 origin -- "$EXT_TEST_COMMIT"
|
git fetch --depth=1 --recurse-submodules --jobs="$(getconf _NPROCESSORS_ONLN)" origin -- "$EXT_TEST_COMMIT"
|
||||||
git checkout --force --detach "$EXT_TEST_COMMIT" --
|
git checkout --force --detach "$EXT_TEST_COMMIT" --
|
||||||
fi
|
fi
|
||||||
if [ -f "../patches/$EXT_TEST_REPO.patch" ]; then
|
if [ -f "../patches/$EXT_TEST_REPO.patch" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user