From af3911b83319609bff5f582a2e904027fffdce3a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 22 Oct 2017 19:29:29 -0400 Subject: MISC: update README and migration comment --- models/migrations/v15.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'models') diff --git a/models/migrations/v15.go b/models/migrations/v15.go index 65b2a313..ebee4964 100644 --- a/models/migrations/v15.go +++ b/models/migrations/v15.go @@ -67,6 +67,8 @@ func generateAndMigrateGitHooks(x *xorm.Engine) (err error) { wikiPath := repoBase + ".wiki.git" log.Trace("[%04d]: %s", idx, repoPath) + // Note: we should not create hookDir here because update hook file should already exists inside this direcotry, + // if this directory does not exist, the current setup is not correct anyway. hookDir := filepath.Join(repoPath, "hooks") customHookDir := filepath.Join(repoPath, "custom_hooks") wikiHookDir := filepath.Join(wikiPath, "hooks") -- cgit v1.2.3