Files
openrig/packages
Mike Schwarzandorch-advisor f87a956dbb fix(codex): pass real git dirs, not a worktree's .git file, to --add-dir (#121) (#126)
In a linked git worktree <cwd>/.git is a file, and passing it to Codex as
--add-dir breaks the Linux sandbox for every command. The fresh launch now
resolves the git metadata directories: an ordinary repository keeps
<cwd>/.git; a .git file resolves through git rev-parse to the worktree git
dir and the common git dir (existing directories only); anything
unresolvable adds nothing. A missing .git keeps the previous argument.
Resume and fork are unchanged.

Reported with a reproduction and the suggested rev-parse approach by
mgall-ibizdigital in #121.

Co-authored-by: orch-advisor <orch-advisor@openrig-build>
2026-09-29 01:57:09 -07:00
..