aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-21 04:01:19 +0800
committerzeripath <art27@cantab.net>2020-01-20 20:01:19 +0000
commitd92781bf941972761177ac9e07441f8893758fd3 (patch)
treed5d00f8f42fc75ee497bfd8cd52d3b431f1d9b67 /services
parent27c6b8fc07eab2dd579b94cd92136738ace61706 (diff)
downloadgitea-d92781bf941972761177ac9e07441f8893758fd3.tar.gz
gitea-d92781bf941972761177ac9e07441f8893758fd3.zip
Refactor repository check and sync functions (#9854)
Move more general repository functions out of models/repo.go
Diffstat (limited to 'services')
-rw-r--r--services/wiki/wiki.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/wiki/wiki.go b/services/wiki/wiki.go
index e2b04ade77..2ace1d7a08 100644
--- a/services/wiki/wiki.go
+++ b/services/wiki/wiki.go
@@ -14,6 +14,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
+ repo_module "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/sync"
"code.gitea.io/gitea/modules/util"
@@ -74,7 +75,7 @@ func InitWiki(repo *models.Repository) error {
if err := git.InitRepository(repo.WikiPath(), true); err != nil {
return fmt.Errorf("InitRepository: %v", err)
- } else if err = models.CreateDelegateHooks(repo.WikiPath()); err != nil {
+ } else if err = repo_module.CreateDelegateHooks(repo.WikiPath()); err != nil {
return fmt.Errorf("createDelegateHooks: %v", err)
}
return nil