mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 05:00:35 +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
|
else
|
||||||
log "ac-workspace clone ${ORIGIN} → ${AC_ROOT}"
|
log "ac-workspace clone ${ORIGIN} → ${AC_ROOT}"
|
||||||
rm -rf "$AC_ROOT"
|
rm -rf "$AC_ROOT"
|
||||||
git clone --branch "$BRANCH" --depth 1 "$ORIGIN" "$AC_ROOT"
|
git clone --branch "$BRANCH" "$ORIGIN" "$AC_ROOT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$AC_ROOT"
|
cd "$AC_ROOT"
|
||||||
log "submodule init: ${SUBS}"
|
log "submodule sync + init: ${SUBS}"
|
||||||
|
git submodule sync --recursive 2>/dev/null || true
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
git submodule update --init --depth 1 $SUBS
|
git submodule update --init --depth 1 $SUBS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user