From 18c60d38ab55f161b2d14a2094ceb682ce1f85ff Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 29 Oct 2021 17:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/private/serv.go | 2 +- routers/repo/http.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/private/serv.go b/routers/private/serv.go index f405d1d75..c2c6b656c 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.go @@ -125,7 +125,7 @@ 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() diff --git a/routers/repo/http.go b/routers/repo/http.go index ed6276466..7a1670402 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -312,7 +312,7 @@ func HTTP(ctx *context.Context) { } environ = append(environ, models.ProtectedBranchRepoID+fmt.Sprintf("=%d", repo.ID)) - + log.Info("git oper to this 2.") if service == "git-upload-pack" { // clone_cnt go repo.IncreaseCloneCnt() }