projects
/
git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix typo in pack-objects' usage
[git]
/
builtin
/
ls-tree.c
diff --git
a/builtin/ls-tree.c
b/builtin/ls-tree.c
index
dc86b0d
..
a818756
100644
(file)
--- a/
builtin/ls-tree.c
+++ b/
builtin/ls-tree.c
@@
-52,6
+52,8
@@
static int show_recursive(const char *base, int baselen, const char *pathname)
speclen = strlen(spec);
if (speclen <= len)
continue;
+ if (spec[len] && spec[len] != '/')
+ continue;
if (memcmp(pathname, spec, len))
continue;
return 1;