diff options
Diffstat (limited to 'internal/db/migrations/v15.go')
-rw-r--r-- | internal/db/migrations/v15.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/db/migrations/v15.go b/internal/db/migrations/v15.go index 72d24143..0631e472 100644 --- a/internal/db/migrations/v15.go +++ b/internal/db/migrations/v15.go @@ -32,9 +32,9 @@ func generateAndMigrateGitHooks(x *xorm.Engine) (err error) { var ( hookNames = []string{"pre-receive", "update", "post-receive"} hookTpls = []string{ - fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' pre-receive\n", conf.ScriptType, conf.AppPath(), conf.CustomConf), - fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' update $1 $2 $3\n", conf.ScriptType, conf.AppPath(), conf.CustomConf), - fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' post-receive\n", conf.ScriptType, conf.AppPath(), conf.CustomConf), + fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' pre-receive\n", conf.Repository.ScriptType, conf.AppPath(), conf.CustomConf), + fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' update $1 $2 $3\n", conf.Repository.ScriptType, conf.AppPath(), conf.CustomConf), + fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' post-receive\n", conf.Repository.ScriptType, conf.AppPath(), conf.CustomConf), } ) @@ -63,7 +63,7 @@ func generateAndMigrateGitHooks(x *xorm.Engine) (err error) { return nil } - repoBase := filepath.Join(conf.RepoRootPath, strings.ToLower(user.Name), strings.ToLower(repo.Name)) + repoBase := filepath.Join(conf.Repository.Root, strings.ToLower(user.Name), strings.ToLower(repo.Name)) repoPath := repoBase + ".git" wikiPath := repoBase + ".wiki.git" log.Trace("[%04d]: %s", idx, repoPath) |