diff options
author | John Keeping <john@keeping.me.uk> | 2017-03-07 02:27:23 +0300 |
---|---|---|
committer | Lukas Fleischer <lfleischer@lfos.de> | 2017-08-10 16:15:58 +0300 |
commit | 135a75540421a3c8b82634730a3765d1e49442ea (patch) | |
tree | 6cdb129defc194920f6fb02153e3788184318b8d | |
parent | 7d9b5590f4ffbc5d8a6fe30e3e9715ad4b5ca7bd (diff) |
ui-plain: print symlink contentlf/for-jason
We currently ignore symlinks in ui-plain, leading to a 404. In ui-tree
we print the content of the blob (that is, the path to the target of the
link), so it makes sense to do the same here.
Signed-off-by: John Keeping <john@keeping.me.uk>
-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, struct walk_tree_context *walk_tree_ctx = cbdata; if (base->len == walk_tree_ctx->match_baselen) { - if (S_ISREG(mode)) { + if (S_ISREG(mode) || S_ISLNK(mode)) { if (print_object(sha1, pathname)) walk_tree_ctx->match = 1; } else if (S_ISDIR(mode)) { |