Ver código fonte

Return 404 when tag is broken (#20017)

Fixes #19979
tags/v1.18.0-rc0
Wim 2 anos atrás
pai
commit
439ace607d
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      modules/context/repo.go

+ 4
- 0
modules/context/repo.go Ver arquivo

@@ -942,6 +942,10 @@ func RepoRefByType(refType RepoRefType, ignoreNotExistErr ...bool) func(*Context

ctx.Repo.Commit, err = ctx.Repo.GitRepo.GetTagCommit(refName)
if err != nil {
if git.IsErrNotExist(err) {
ctx.NotFound("GetTagCommit", err)
return
}
ctx.ServerError("GetTagCommit", err)
return
}

Carregando…
Cancelar
Salvar