|
|
@@ -9,7 +9,6 @@ import ( |
|
|
|
"bytes" |
|
|
|
"compress/gzip" |
|
|
|
gocontext "context" |
|
|
|
"encoding/json" |
|
|
|
"fmt" |
|
|
|
"io/ioutil" |
|
|
|
"net/http" |
|
|
@@ -313,20 +312,6 @@ 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.Form) |
|
|
|
log.Info("reqJson=" + string(reqJson)) |
|
|
|
|
|
|
|
log.Info("query go-get:" + ctx.Query("go-get")) |
|
|
|
|
|
|
|
log.Info("query service:" + ctx.Query("service")) |
|
|
|
|
|
|
|
paramJson, _ := json.Marshal(ctx.Params) |
|
|
|
log.Info("paramJson=" + string(paramJson)) |
|
|
|
|
|
|
|
if service == "git-upload-pack" { // clone_cnt |
|
|
|
go repo.IncreaseCloneCnt() |
|
|
|