mirror of
https://github.com/go-gitea/gitea
synced 2025-07-25 19:58:36 +00:00
Enable gocritic equalFold
and fix issues (#34952)
Continuation of https://github.com/go-gitea/gitea/pull/34678. --------- Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -165,7 +165,7 @@ func handleSettingsPostUpdate(ctx *context.Context) {
|
||||
|
||||
newRepoName := form.RepoName
|
||||
// Check if repository name has been changed.
|
||||
if repo.LowerName != strings.ToLower(newRepoName) {
|
||||
if !strings.EqualFold(repo.LowerName, newRepoName) {
|
||||
// Close the GitRepo if open
|
||||
if ctx.Repo.GitRepo != nil {
|
||||
ctx.Repo.GitRepo.Close()
|
||||
|
Reference in New Issue
Block a user