Limit fetch to depth 1
This commit is contained in:
parent
86a475b733
commit
348c4d54a4
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue