aboutsummaryrefslogtreecommitdiff
path: root/models/migrations/v15.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-10-22 19:29:29 -0400
committerUnknwon <u@gogs.io>2017-10-22 19:29:29 -0400
commitaf3911b83319609bff5f582a2e904027fffdce3a (patch)
treeed1b380ee11f91329f1685c362ff87e03b5551e2 /models/migrations/v15.go
parent4258bf3d54be12a290cf35b1e28de1d0dac8e78e (diff)
MISC: update README and migration comment
Diffstat (limited to 'models/migrations/v15.go')
-rw-r--r--models/migrations/v15.go2
1 files changed, 2 insertions, 0 deletions
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")