diff options
-rw-r--r-- | ui-plain.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ static int walk_tree(const unsigned char *sha1, struct strbuf *base, | |||
135 | struct walk_tree_context *walk_tree_ctx = cbdata; | 135 | struct walk_tree_context *walk_tree_ctx = cbdata; |
136 | 136 | ||
137 | if (base->len == walk_tree_ctx->match_baselen) { | 137 | if (base->len == walk_tree_ctx->match_baselen) { |
138 | if (S_ISREG(mode)) { | 138 | if (S_ISREG(mode) || S_ISLNK(mode)) { |
139 | if (print_object(sha1, pathname)) | 139 | if (print_object(sha1, pathname)) |
140 | walk_tree_ctx->match = 1; | 140 | walk_tree_ctx->match = 1; |
141 | } else if (S_ISDIR(mode)) { | 141 | } else if (S_ISDIR(mode)) { |