We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a868d commit 6132a82Copy full SHA for 6132a82
models/repo.go
@@ -1663,7 +1663,15 @@ func ReinitMissingRepositories() error {
1663
func SyncRepositoryHooks() error {
1664
return x.Where("id > 0").Iterate(new(Repository),
1665
func(idx int, bean interface{}) error {
1666
- return createDelegateHooks(bean.(*Repository).RepoPath())
+ repo := bean.(*Repository)
1667
+ if err := createDelegateHooks(repo.RepoPath()); err != nil {
1668
+ return err
1669
+ }
1670
+
1671
+ if repo.HasWiki() {
1672
+ return createDelegateHooks(repo.WikiPath())
1673
1674
+ return nil
1675
})
1676
}
1677
0 commit comments