diff --git a/cmd/serve.go b/cmd/serve.go index 57677704..34ebe9fb 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -219,9 +219,13 @@ func runServ(c *cli.Context) { } // Send deliver hook request. - resp, err := httplib.Head(setting.AppUrl + setting.AppSubUrl + repoUserName + "/" + repoName + "/hooks/trigger").Response() + reqURL := setting.AppUrl + repoUserName + "/" + repoName + "/hooks/trigger" + resp, err := httplib.Head(reqURL).Response() if err == nil { resp.Body.Close() + log.GitLogger.Trace("Trigger hook: %s", reqURL) + } else { + log.GitLogger.Error(2, "Fail to trigger hook: %v", err) } // Update user key activity. diff --git a/gogs.go b/gogs.go index fe379aa2..9c98f350 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.6.16.1004 Beta" +const APP_VER = "0.6.16.1005 Beta" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/templates/.VERSION b/templates/.VERSION index 79f6fe8a..42cae8e8 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.6.16.1004 Beta \ No newline at end of file +0.6.16.1005 Beta \ No newline at end of file