Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CLI sub-command handling (#25501) #25517

Merged
merged 1 commit into from
Jun 26, 2023

Commits on Jun 26, 2023

  1. Fix CLI sub-command handling (go-gitea#25501)

    A regression of go-gitea#25330 : The nil "Action" should be treated as "help"
    
    In old releases: `./gitea admin` show helps
    
    After go-gitea#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.
    wxiaoguang authored and GiteaBot committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    ccefbfb View commit details
    Browse the repository at this point in the history