Skip to content

Commit c88eb40

Browse files
discord9MomePP
authored andcommitted
fix(task-management): support git worktrees in router root detection
1 parent 09eebd7 commit c88eb40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.opencode/skills/task-management/router.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ find_project_root() {
7272
local dir
7373
dir="$(pwd)"
7474
while [ "$dir" != "/" ]; do
75-
if [ -d "$dir/.git" ] || [ -f "$dir/package.json" ]; then
75+
if [ -e "$dir/.git" ] || [ -f "$dir/package.json" ]; then
7676
echo "$dir"
7777
return 0
7878
fi
7979
dir="$(dirname "$dir")"
8080
done
8181
pwd
82-
return 1
82+
return 0
8383
}
8484

8585
# Handle help

0 commit comments

Comments
 (0)