Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pathspec: pass directory indicator to match_pathspec_item()
[gitweb.git]
/
tree-walk.c
diff --git
a/tree-walk.c
b/tree-walk.c
index 680afda060e28fd15c0064bd51cb829dc2469b1c..c29b6a3a566fe911271c9833e511190822aed723 100644
(file)
--- a/
tree-walk.c
+++ b/
tree-walk.c
@@
-543,7
+543,7
@@
static int match_entry(const struct pathspec_item *item,
if (matchlen > pathlen) {
if (match[pathlen] != '/')
return 0;
- if (!S_ISDIR(entry->mode))
+ if (!S_ISDIR(entry->mode)
&& !S_ISGITLINK(entry->mode)
)
return 0;
}