Pārlūkot izejas kodu

MISC: update README and migration comment

Unknwon 7 gadi atpakaļ
vecāks
revīzija
af3911b833
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 1 1
      README.md
  2. 2 0
      models/migrations/v15.go

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
README.md


+ 2 - 0
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")