Commit graph

2 commits

Author SHA1 Message Date
carlfriedrich a3bfe847cf test: fix worktree tests for MacOS
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-09-09 20:19:47 +08:00
carlfriedrich 77ce6db8b4 feat: resolve a relative FORGIT_WORKTREE_ADD_DIR per repository
A relative FORGIT_WORKTREE_ADD_DIR is resolved against the root of the
main worktree on every invocation, so a single setting such as
`.worktrees` is valid in every repository. Absolute paths keep their
meaning.

The variable previously only took a full path, so users resolved the
repository root in their shell startup files, which runs git outside a
repository on every new shell and freezes the path for the whole
session.
2026-09-09 20:19:47 +08:00