Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
exclude: fix a bug in prefix compare optimization
[gitweb.git]
/
dir.c
diff --git
a/dir.c
b/dir.c
index d9b55614666e631e6b3ada04e4ee6a51c3e41a33..22d0b7b726b1cd2ad757c6a9fe7b3295c1d52878 100644
(file)
--- a/
dir.c
+++ b/
dir.c
@@
-585,7
+585,7
@@
int excluded_from_list(const char *pathname,
namelen -= prefix;
}
- if (!
namelen || !
fnmatch_icase(exclude, name, FNM_PATHNAME))
+ if (!fnmatch_icase(exclude, name, FNM_PATHNAME))
return to_exclude;
}
return -1; /* undecided */