mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 07:54:06 +01:00
add log for trigger hook when push through SSH
This commit is contained in:
parent
215920772a
commit
db00aa7653
3 changed files with 7 additions and 3 deletions
|
@ -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.
|
||||
|
|
2
gogs.go
2
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())
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.6.16.1004 Beta
|
||||
0.6.16.1005 Beta
|
Loading…
Reference in a new issue