summaryrefslogtreecommitdiffstats
path: root/modules/repository/fork.go
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 /modules/repository/fork.go
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 'modules/repository/fork.go')
-rw-r--r--modules/repository/fork.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/fork.go b/modules/repository/fork.go
index 8953ce9ba4..638d3588ec 100644
--- a/modules/repository/fork.go
+++ b/modules/repository/fork.go
@@ -69,7 +69,7 @@ func ForkRepository(doer, owner *models.User, oldRepo *models.Repository, name,
return fmt.Errorf("git update-server-info: %v", err)
}
- if err = models.CreateDelegateHooks(repoPath); err != nil {
+ if err = createDelegateHooks(repoPath); err != nil {
return fmt.Errorf("createDelegateHooks: %v", err)
}
return nil