OpenWriterControle/.opencode/skills/task-management
discord9 0879d0493b
fix(task-management): support git worktrees in router root detection (#301)
find_project_root used [ -d "$dir/.git" ], which fails in a git worktree where .git is a file containing a gitdir: pointer rather than a directory. Switches to -e (a strict superset, so the normal-repo case is unaffected; submodules are fixed for free).

Also changes return 1 to return 0 in the fallback branch: PROJECT_ROOT="$(find_project_root)" takes the command substitution's exit status, so under set -e the script aborted after the fallback value had already been computed, producing silent no-output.

Mainly affects non-Node projects consuming OAC from a worktree; this repo's root package.json masks the bug.
2026-07-15 00:53:00 +01:00
..
scripts align context and skills consistency (#192) (#198) 2026-02-12 00:20:51 +00:00
router.sh fix(task-management): support git worktrees in router root detection (#301) 2026-07-15 00:53:00 +01:00
SKILL.md align context and skills consistency (#192) (#198) 2026-02-12 00:20:51 +00:00