X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=dir.c;h=b2dfb69eb5606a7538cc5e1876a91f703ec4969c;hb=385cc9d8c44eb5be9d57e630129752a72c0a08c8;hp=d1e5e5e5bfaea81cb46fc3e3f57df31c6ef1eb2a;hpb=75a2f301676aefb85c4f67da613cad2405e77927;p=git.git diff --git a/dir.c b/dir.c index d1e5e5e5b..b2dfb69eb 100644 --- a/dir.c +++ b/dir.c @@ -360,7 +360,8 @@ int excluded_from_list(const char *pathname, if (x->flags & EXC_FLAG_MUSTBEDIR) { if (!dtype) { - if (!prefixcmp(pathname, exclude)) + if (!prefixcmp(pathname, exclude) && + pathname[x->patternlen] == '/') return to_exclude; else continue;