fix repo listing (#222)

fix type filter flag

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Norwin Roosen <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/222
Reviewed-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Norwin 2020-10-06 13:09:33 +00:00 committed by 6543
parent c4e2db32b5
commit a4b792e24d
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ func getTypeFilter(ctx *cli.Context) (filter gitea.RepoType, err error) {
t := ctx.String("type") t := ctx.String("type")
filter = gitea.RepoTypeNone filter = gitea.RepoTypeNone
switch t { switch t {
case "":
filter = gitea.RepoTypeNone
case "fork": case "fork":
filter = gitea.RepoTypeFork filter = gitea.RepoTypeFork
case "mirror": case "mirror":