From 348c4d54a4ae342e5501b7425230d378b950837f Mon Sep 17 00:00:00 2001 From: nullprop Date: Sat, 27 Apr 2024 16:22:35 +0300 Subject: [PATCH] Limit fetch to depth 1 --- build-matrix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-matrix.sh b/build-matrix.sh index 84900e8..100e54c 100755 --- a/build-matrix.sh +++ b/build-matrix.sh @@ -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"