diff --git a/.forgejo/worktree.env b/.forgejo/worktree.env new file mode 100644 index 00000000..b7af1ca7 --- /dev/null +++ b/.forgejo/worktree.env @@ -0,0 +1,5 @@ +FORGEJO_REPOSITORY=fsolla/teqo +# Mantém o root atual enquanto houver sessões opencode ativas nos worktrees +# antigos (OPS52/OPS53/PUB5 em ~/.cursor/worktrees/teqo). Quando todas +# fecharem, migrar para ~/.worktrees/teqo (git worktree move) e trocar aqui. +WORKTREES_ROOT=~/.cursor/worktrees/teqo diff --git a/scripts/worktree.mjs b/scripts/worktree.mjs index 57d13760..a7e70dd4 100644 --- a/scripts/worktree.mjs +++ b/scripts/worktree.mjs @@ -141,7 +141,7 @@ import { } from './lib/worktree.mjs' const die = dieAgent('worktree') -const WORKTREES_ROOT = join(homedir(), '.cursor', 'worktrees', 'teqo') +const WORKTREES_ROOT = process.env.WORKTREES_ROOT ?? join(homedir(), '.cursor', 'worktrees', 'teqo') /** * True when the interactive terminal shell function (`.agents/shell/worktree.sh`)