diff options
author | Unknwon <u@gogs.io> | 2016-08-11 10:53:51 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-11 10:53:51 -0700 |
commit | 5077408d78971463a94f2037d78fa68f201bda48 (patch) | |
tree | 45e01783d324f52a088eab1102ed70353340a54b /models/wiki.go | |
parent | 0885784f136b9b68653ec33fa733e962f3507f7e (diff) | |
download | gitea-5077408d78971463a94f2037d78fa68f201bda48.tar.gz gitea-5077408d78971463a94f2037d78fa68f201bda48.zip |
#3233 code cleanup and minor issue fix
Diffstat (limited to 'models/wiki.go')
-rw-r--r-- | models/wiki.go | 2 |
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 } |