Procházet zdrojové kódy

Return 404 when tag is broken (#20017)

Fixes #19979
tags/v1.18.0-rc0
Wim před 2 roky
rodič
revize
439ace607d
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      modules/context/repo.go

+ 4
- 0
modules/context/repo.go Zobrazit soubor

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

Načítá se…
Zrušit
Uložit