Browse Source

增加打印信息

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

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

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


+ 1
- 1
routers/repo/http.go View File

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


Loading…
Cancel
Save