Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00

Revert "[BUG] Initalize Git for hook regeneration"

This reverts commit 815abad84c.

Redundant with:

 Always write proc-receive hook for all git versions (#29287)
This commit is contained in:
Earl Warren 2024-02-26 21:39:12 +01:00
parent 52bf6bf60c
commit d3a642a7e0
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -5,7 +5,6 @@ package cmd
import ( import (
asymkey_model "code.gitea.io/gitea/models/asymkey" asymkey_model "code.gitea.io/gitea/models/asymkey"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/graceful" "code.gitea.io/gitea/modules/graceful"
repo_service "code.gitea.io/gitea/services/repository" repo_service "code.gitea.io/gitea/services/repository"
@ -33,12 +32,6 @@ func runRegenerateHooks(_ *cli.Context) error {
if err := initDB(ctx); err != nil { if err := initDB(ctx); err != nil {
return err return err
} }
// Detection of ProcReceive support relies on Git module being initalized.
if err := git.InitFull(ctx); err != nil {
return err
}
return repo_service.SyncRepositoryHooks(graceful.GetManager().ShutdownContext()) return repo_service.SyncRepositoryHooks(graceful.GetManager().ShutdownContext())
} }