diff options
author | Giteabot <teabot@gitea.io> | 2023-06-26 04:41:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 16:41:52 +0800 |
commit | 00ba826360fdcfc15cba54c91065f15a65517300 (patch) | |
tree | 7a96c17871a9f3dfc5b7e15dadfe1773f5fcc107 /templates/admin | |
parent | 9bbb4d8d6d812d395d16d9a60ae55338608df73d (diff) | |
download | gitea-00ba826360fdcfc15cba54c91065f15a65517300.tar.gz gitea-00ba826360fdcfc15cba54c91065f15a65517300.zip |
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>
Diffstat (limited to 'templates/admin')
0 files changed, 0 insertions, 0 deletions