Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
kill limit_pathspec_to_literal() as it's only used by parse_pathspec()
[gitweb.git]
/
tree-walk.c
diff --git
a/tree-walk.c
b/tree-walk.c
index d399ca9dcc69a21eaae31f2926b8480d22e86672..37b157ed6e2c90d3ae24e39e944237a7c75d8bf2 100644
(file)
--- a/
tree-walk.c
+++ b/
tree-walk.c
@@
-636,6
+636,8
@@
enum interesting tree_entry_interesting(const struct name_entry *entry,
enum interesting never_interesting = ps->has_wildcard ?
entry_not_interesting : all_entries_not_interesting;
+ GUARD_PATHSPEC(ps, PATHSPEC_FROMTOP | PATHSPEC_MAXDEPTH);
+
if (!ps->nr) {
if (!ps->recursive ||
!(ps->magic & PATHSPEC_MAXDEPTH) ||