Commit Diff
- Commit:
cfd6e648cc55733bfd27f5aba59576bd2429e4356c81a6d9ba8d965fa158ed6a- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- fix ignore pattern matching when a file path is given to 'got status' The final path argument of add_ignores_from_parent_paths() is expected to be relative to the work tree root path, but we were passing an absolute path. Problem reported by Mikhail Pchelin
- Actions:
- Patch | Tree
--- lib/worktree.c +++ lib/worktree.c @@ -4241,7 +4241,7 @@ worktree_status(struct got_worktree *worktree, const c else { if (!no_ignores) { err = add_ignores_from_parent_paths(&ignores, - worktree->root_path, ondisk_path); + worktree->root_path, path); if (err) goto done; }
