1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 08:38:36 +03:00

cluster0: full workspace clone for submodule gitlinks

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-06-23 12:59:49 +02:00
parent b58bcc1e99
commit 6c224d023f

View File

@@ -22,11 +22,12 @@ if [ -d "${AC_ROOT}/.git" ]; then
else
log "ac-workspace clone ${ORIGIN}${AC_ROOT}"
rm -rf "$AC_ROOT"
git clone --branch "$BRANCH" --depth 1 "$ORIGIN" "$AC_ROOT"
git clone --branch "$BRANCH" "$ORIGIN" "$AC_ROOT"
fi
cd "$AC_ROOT"
log "submodule init: ${SUBS}"
log "submodule sync + init: ${SUBS}"
git submodule sync --recursive 2>/dev/null || true
# shellcheck disable=SC2086
git submodule update --init --depth 1 $SUBS