mirror of
https://gitea.com/gitea/tea.git
synced 2024-12-22 09:05:06 +01:00
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:
parent
c4e2db32b5
commit
a4b792e24d
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user