]> source.dussan.org Git - gitea.git/commit
Fix CLI sub-command handling (#25501) (#25517)
authorGiteabot <teabot@gitea.io>
Mon, 26 Jun 2023 08:41:52 +0000 (04:41 -0400)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2023 08:41:52 +0000 (16:41 +0800)
commit00ba826360fdcfc15cba54c91065f15a65517300
tree7a96c17871a9f3dfc5b7e15dadfe1773f5fcc107
parent9bbb4d8d6d812d395d16d9a60ae55338608df73d
Fix CLI sub-command handling (#25501) (#25517)

Backport #25501 by @wxiaoguang

A regression of #25330 : The nil "Action" should be treated as "help"

In old releases: `./gitea admin` show helps

After #25330: `./gitea admin` panics (although the code returned `nil`
if action is nil, but Golang's quirk is: nil in interface is not nil)

With this PR: `./gitea admin` shows helps as the old releases.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
main.go