summaryrefslogtreecommitdiffstats
path: root/models/wiki.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-11 10:53:51 -0700
committerUnknwon <u@gogs.io>2016-08-11 10:53:51 -0700
commit5077408d78971463a94f2037d78fa68f201bda48 (patch)
tree45e01783d324f52a088eab1102ed70353340a54b /models/wiki.go
parent0885784f136b9b68653ec33fa733e962f3507f7e (diff)
downloadgitea-5077408d78971463a94f2037d78fa68f201bda48.tar.gz
gitea-5077408d78971463a94f2037d78fa68f201bda48.zip
#3233 code cleanup and minor issue fix
Diffstat (limited to 'models/wiki.go')
-rw-r--r--models/wiki.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/wiki.go b/models/wiki.go
index 39fb96dd5c..6809c28821 100644
--- a/models/wiki.go
+++ b/models/wiki.go
@@ -105,6 +105,8 @@ func (repo *Repository) InitWiki() error {
if err := git.InitRepository(repo.WikiPath(), true); err != nil {
return fmt.Errorf("InitRepository: %v", err)
+ } else if err = createUpdateHook(repo.WikiPath()); err != nil {
+ return fmt.Errorf("createUpdateHook: %v", err)
}
return nil
}