Limit fetch to depth 1

This commit is contained in:
Lauri Räsänen 2024-04-27 16:22:35 +03:00
parent 86a475b733
commit 348c4d54a4

View file

@ -36,12 +36,12 @@ BRANCHES=(
ROOT=$(pwd)
HL2SDK="$ROOT/include/hl2sdk"
# --depth=1 in workflow runners
# --depth=1 checkout in workflow runners has no branch info
if [ "$CI" = "true" ]
then
cd "$HL2SDK"
git remote set-branches origin '*'
git fetch --all
git fetch --depth=1
echo "Available branches:"
git branch --all
cd "$ROOT"