From mboxrd@z Thu Jan 1 00:00:00 1970 From: jea-signup-cgit at anakata.org (Joe Anakata) Date: Mon, 15 Feb 2016 23:57:39 -0800 Subject: [PATCH 1/1] ui-plain: show directory listing for top of repo in plain view Message-ID: <20160216075739.8DB5882322@gnosis.slac.com> unsigned to signed comparison was always false when at the root of the tree --- ui-plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-plain.c b/ui-plain.c index ff85113..b4e3bef 100644 --- a/ui-plain.c +++ b/ui-plain.c @@ -143,7 +143,7 @@ static int walk_tree(const unsigned char *sha1, struct strbuf *base, walk_tree_ctx->match = 2; return READ_TREE_RECURSIVE; } - } else if (base->len > walk_tree_ctx->match_baselen) { + } else if ((int)base->len > walk_tree_ctx->match_baselen) { print_dir_entry(sha1, base->buf, base->len, pathname, mode); walk_tree_ctx->match = 2; } else if (S_ISDIR(mode)) { -- 1.9.1