superpowers/tests/codex
Jesse Vincent f713233eee fix(codex): accept linked git worktrees as checkouts
package-codex-plugin.sh and sync-to-codex-plugin.sh checked for a
checkout with [[ -d .git ]]. In a linked worktree .git is a file, so
both scripts died with "not a git checkout" there, and
tests/codex/test-package-codex-plugin.sh failed 9 checks when run from
any worktree. Test that .git exists instead: it covers both layouts
and still requires the path to be the root of a checkout, which
matters for sync's user-supplied --local path. The scripts' later git
commands already work in worktrees.

Regression tests run the package script from a linked worktree of the
repo, and a sync preview from a linked upstream worktree into a linked
destination worktree. The package test is adapted from #1910.

Co-authored-by: tianma-if <tianma-if@users.noreply.github.com>
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-23 03:48:33 +00:00
..
test-marketplace-manifest.sh fix(codex): suppress SessionStart hook auto-discovery with empty hooks object 2026-07-02 14:53:00 -07:00
test-package-codex-plugin.sh fix(codex): accept linked git worktrees as checkouts 2026-10-23 03:48:33 +00:00