diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-17 23:17:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 23:17:31 +0800 |
commit | 5233051e64e90238bb7b6ddf9ecd1513e57bf8e9 (patch) | |
tree | 6e21565fd47954877bc14fd66f57d798c86e3300 /cmd/admin.go | |
parent | 750a8465f547e9f08a87612c75898d56b8ec1f88 (diff) | |
download | gitea-5233051e64e90238bb7b6ddf9ecd1513e57bf8e9.tar.gz gitea-5233051e64e90238bb7b6ddf9ecd1513e57bf8e9.zip |
Move some functions into services/repository (#17677)
Diffstat (limited to 'cmd/admin.go')
-rw-r--r-- | cmd/admin.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index 64106f5060..858498ed37 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -25,6 +25,7 @@ import ( "code.gitea.io/gitea/modules/storage" auth_service "code.gitea.io/gitea/services/auth" "code.gitea.io/gitea/services/auth/source/oauth2" + repo_service "code.gitea.io/gitea/services/repository" "github.com/urfave/cli" ) @@ -612,7 +613,7 @@ func runRegenerateHooks(_ *cli.Context) error { if err := initDB(ctx); err != nil { return err } - return repo_module.SyncRepositoryHooks(graceful.GetManager().ShutdownContext()) + return repo_service.SyncRepositoryHooks(graceful.GetManager().ShutdownContext()) } func runRegenerateKeys(_ *cli.Context) error { |