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:
ISSOtm
2026-09-11 16:31:19 -04:00
parent 970bb84450
commit 9d69a08909
+2 -2
View File
@@ -71,12 +71,12 @@ case "$actionname" in
if [ ! -d "$EXT_TEST_REPO" ]; then
git clone "https://$EXT_TEST_DOMAIN/$EXT_TEST_OWNER/$EXT_TEST_REPO" \
--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"
else
pushd "$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" --
fi
if [ -f "../patches/$EXT_TEST_REPO.patch" ]; then