Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1036/head
zouap 3 years ago
parent
commit
c961aa3b5a
2 changed files with 0 additions and 16 deletions
  1. +0
    -1
      routers/private/serv.go
  2. +0
    -15
      routers/repo/http.go

+ 0
- 1
routers/private/serv.go View File

@@ -125,7 +125,6 @@ func ServCommand(ctx *macaron.Context) {
return
}
}
log.Info("git oper to this.")
for _, verb := range ctx.QueryStrings("verb") { // clone_cnt
if verb == "git-upload-pack" {
go repo.IncreaseCloneCnt()


+ 0
- 15
routers/repo/http.go View File

@@ -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()


Loading…
Cancel
Save