Browse Source

Merge pull request '#634 代码仓页面点击下载后,页面显示的下载量不会增加' (#635) from zouap into V20211101

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/635
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.11.1
lewis 4 years ago
parent
commit
dfd2790d7f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/repo.go

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

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


ctx.Repo.Repository.IncreaseCloneCnt()

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




Loading…
Cancel
Save