fix(backward): fix backward data clone script with multiple branches

This commit is contained in:
Nicolas Sarlin
2024-09-11 14:20:54 +02:00
committed by Nicolas Sarlin
parent 0d49d19a13
commit 5183c1fb3e
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ if ! git lfs env 2>/dev/null >/dev/null; then
fi
if [ -d $3 ]; then
cd $3 && git fetch --depth 1 && git reset --hard origin/$2 && git clean -dfx
cd $3 && git remote set-branches origin '*' && git fetch --depth 1 && git reset --hard origin/$2 && git clean -dfx
else
git clone $1 -b $2 --depth 1 $3