mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-25 12:01:36 +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")
|
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":
|
||||||
|
Loading…
Reference in New Issue
Block a user