commit - f5c49f82371af261622c0db5fea60e6558d32c6c
commit + 82d71325af9661465ecf314c98d8eecc487befc4
blob - 82b3c5fb16d76861d57253af15621fd81e41d392
blob + a4c0065c84ec06865acc4d598571f1c2b23c90c2
--- lib/worktree.c
+++ lib/worktree.c
struct got_tree_entry *te;
size_t len;
- /* Skip this tree if it is outside of our path prefix. */
+ /* Skip this tree if it shares no path components with the prefix. */
len = MIN(strlen(worktree->path_prefix), strlen(path));
if (strncmp(path, worktree->path_prefix, len) != 0)
return NULL;