diff --git a/vibn-frontend/lib/dev-container.ts b/vibn-frontend/lib/dev-container.ts index 304d996..ebf7243 100644 --- a/vibn-frontend/lib/dev-container.ts +++ b/vibn-frontend/lib/dev-container.ts @@ -442,7 +442,7 @@ export async function execInDevContainer( if (projectRow?.slug) { const slug = projectRow.slug; const migrationCmd = - `if [ -d "/workspace/${slug}" ] && [ ! -d "/workspace/.git" ]; then ` + + `if [ ! -f "/workspace/.vibn-migration-root-fix" ] && [ -d "/workspace/${slug}" ] && [ ! -d "/workspace/.git" ]; then ` + `rsync -a "/workspace/${slug}/" "/workspace/" 2>/dev/null; ` + `mv "/workspace/${slug}" "/workspace/.legacy-nested-${slug}-$(date +%s)" 2>/dev/null; ` + `echo "Migrated nested repo from /workspace/${slug}" > /workspace/.vibn-migration-root-fix; ` +