| @@ -9,6 +9,7 @@ import ( | |||||
| "bytes" | "bytes" | ||||
| "compress/gzip" | "compress/gzip" | ||||
| gocontext "context" | gocontext "context" | ||||
| "encoding/json" | |||||
| "fmt" | "fmt" | ||||
| "io/ioutil" | "io/ioutil" | ||||
| "net/http" | "net/http" | ||||
| @@ -313,6 +314,13 @@ func HTTP(ctx *context.Context) { | |||||
| environ = append(environ, models.ProtectedBranchRepoID+fmt.Sprintf("=%d", repo.ID)) | environ = append(environ, models.ProtectedBranchRepoID+fmt.Sprintf("=%d", repo.ID)) | ||||
| log.Info("git oper to this 2.") | 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 | if service == "git-upload-pack" { // clone_cnt | ||||
| go repo.IncreaseCloneCnt() | go repo.IncreaseCloneCnt() | ||||
| } | } | ||||