aboutsummaryrefslogtreecommitdiffstats
path: root/services/repository/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/repository/hooks.go')
-rw-r--r--services/repository/hooks.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/services/repository/hooks.go b/services/repository/hooks.go
index 97e9e290a3..c13b272550 100644
--- a/services/repository/hooks.go
+++ b/services/repository/hooks.go
@@ -12,7 +12,6 @@ import (
"code.gitea.io/gitea/models/webhook"
"code.gitea.io/gitea/modules/gitrepo"
"code.gitea.io/gitea/modules/log"
- repo_module "code.gitea.io/gitea/modules/repository"
"xorm.io/builder"
)
@@ -32,11 +31,11 @@ func SyncRepositoryHooks(ctx context.Context) error {
default:
}
- if err := repo_module.CreateDelegateHooks(repo.RepoPath()); err != nil {
+ if err := gitrepo.CreateDelegateHooks(ctx, repo); err != nil {
return fmt.Errorf("SyncRepositoryHook: %w", err)
}
if repo.HasWiki() {
- if err := repo_module.CreateDelegateHooks(repo.WikiPath()); err != nil {
+ if err := gitrepo.CreateDelegateHooks(ctx, repo.WikiStorageRepo()); err != nil {
return fmt.Errorf("SyncRepositoryHook: %w", err)
}
}