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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user