From a4b792e24ddacd144fd2fdee114470349e832c77 Mon Sep 17 00:00:00 2001 From: Norwin Date: Tue, 6 Oct 2020 13:09:33 +0000 Subject: [PATCH] fix repo listing (#222) fix type filter flag Co-authored-by: Lunny Xiao Co-authored-by: Norwin Roosen Reviewed-on: https://gitea.com/gitea/tea/pulls/222 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: Lunny Xiao --- cmd/repos/flags.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/repos/flags.go b/cmd/repos/flags.go index c79b261..daa329e 100644 --- a/cmd/repos/flags.go +++ b/cmd/repos/flags.go @@ -22,6 +22,8 @@ func getTypeFilter(ctx *cli.Context) (filter gitea.RepoType, err error) { t := ctx.String("type") filter = gitea.RepoTypeNone switch t { + case "": + filter = gitea.RepoTypeNone case "fork": filter = gitea.RepoTypeFork case "mirror":