diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-21 04:01:19 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-20 20:01:19 +0000 |
commit | d92781bf941972761177ac9e07441f8893758fd3 (patch) | |
tree | d5d00f8f42fc75ee497bfd8cd52d3b431f1d9b67 /modules/repository/init.go | |
parent | 27c6b8fc07eab2dd579b94cd92136738ace61706 (diff) | |
download | gitea-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/init.go')
-rw-r--r-- | modules/repository/init.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/init.go b/modules/repository/init.go index 9d0beb1138..7b7d07f43e 100644 --- a/modules/repository/init.go +++ b/modules/repository/init.go @@ -164,7 +164,7 @@ func checkInitRepository(repoPath string) (err error) { // Init git bare new repository. if err = git.InitRepository(repoPath, true); err != nil { return fmt.Errorf("git.InitRepository: %v", err) - } else if err = models.CreateDelegateHooks(repoPath); err != nil { + } else if err = createDelegateHooks(repoPath); err != nil { return fmt.Errorf("createDelegateHooks: %v", err) } return nil |