diff --git a/src/branch2.cpp b/src/branch2.cpp index b7475041..dedd8ca0 100644 --- a/src/branch2.cpp +++ b/src/branch2.cpp @@ -78,6 +78,8 @@ Branch2::matches_exclude(ghc::filesystem::path const &path_) const int rv; rv = ::fnmatch(pattern.c_str(),path,FNM_EXTMATCH); + if(rv == 0) + return true; } return false;