Browse Source

修改界面下载也对真实的git clone次数加1

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 3 years ago
parent
commit
7fbddc95e0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/repo/repo.go

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

@@ -532,6 +532,7 @@ func Download(ctx *context.Context) {
}

ctx.Repo.Repository.IncreaseCloneCnt()
ctx.Repo.Repository.IncreaseGitCloneCnt()

ctx.ServeFile(archivePath, ctx.Repo.Repository.Name+"-"+refName+ext)
}


Loading…
Cancel
Save