commit cfd6e648cc55733bfd27f5aba59576bd2429e4356c81a6d9ba8d965fa158ed6a from: Stefan Sperling date: Tue Aug 18 16:47:26 2026 UTC 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 commit - 72451058b6096e8fe47b3d04d6fb934df8857559b9743d01467f3e99be13c15c commit + cfd6e648cc55733bfd27f5aba59576bd2429e4356c81a6d9ba8d965fa158ed6a blob - 7c4d5f5c17619d7fc886f0c70a4bcb408c0842b5e5c445efbdf556f940acccb9 blob + 71f53bfdd4b85b66f3851c10821fdf81bf0bcc9d591c1e7510542d4fa1f357db --- 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; }