diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-29 05:30:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 23:30:06 +0200 |
commit | b4d0036fc3e0657806e550431bf1d5420349472a (patch) | |
tree | ee2f40e380c5c2fb53f258c38735a5ef8313b9df /cmd/embedded.go | |
parent | 6daf21c9b722e31ea5e3b1ec48caa69327580abd (diff) | |
download | gitea-b4d0036fc3e0657806e550431bf1d5420349472a.tar.gz gitea-b4d0036fc3e0657806e550431bf1d5420349472a.zip |
Do not prepare oauth2 config if it is not enabled, do not write config in some sub-commands (#25567)
Ref:
* https://github.com/go-gitea/gitea/issues/25377#issuecomment-1609757289
And some sub-commands like "generate" / "docs", they do not need to use
the ini config
Diffstat (limited to 'cmd/embedded.go')
-rw-r--r-- | cmd/embedded.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/embedded.go b/cmd/embedded.go index 204a623cf7..105acee26c 100644 --- a/cmd/embedded.go +++ b/cmd/embedded.go @@ -22,9 +22,9 @@ import ( "github.com/urfave/cli" ) -// Cmdembedded represents the available extract sub-command. +// CmdEmbedded represents the available extract sub-command. var ( - Cmdembedded = cli.Command{ + CmdEmbedded = cli.Command{ Name: "embedded", Usage: "Extract embedded resources", Description: "A command for extracting embedded resources, like templates and images", |