diff --git a/routers/repo/http.go b/routers/repo/http.go index 7a1670402..7199cd42b 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -9,6 +9,7 @@ import ( "bytes" "compress/gzip" gocontext "context" + "encoding/json" "fmt" "io/ioutil" "net/http" @@ -313,6 +314,13 @@ func HTTP(ctx *context.Context) { environ = append(environ, models.ProtectedBranchRepoID+fmt.Sprintf("=%d", repo.ID)) log.Info("git oper to this 2.") + + dataJson, _ := json.Marshal(ctx.Data) + log.Info("dataJson=" + string(dataJson)) + + reqJson, _ := json.Marshal(ctx.Req.Request) + log.Info("reqJson=" + string(reqJson)) + if service == "git-upload-pack" { // clone_cnt go repo.IncreaseCloneCnt() }