Browse Source

提交代码。

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

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

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


Loading…
Cancel
Save