hook: fix email not sent after push (#4430)

Turns out mail service was not initialized at all, also mail must
be sent in sync in hook mode before program exits.
This commit is contained in:
Unknwon
2017-07-27 16:53:02 -04:00
parent 643c85e9c8
commit 6bc11c4450
10 changed files with 72 additions and 28 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
const APP_VER = "0.11.28.0718"
const APP_VER = "0.11.29.0727"
func init() {
setting.AppVer = APP_VER