Pārlūkot izejas kodu

Return error in sha1CurrentPatternProcessor

Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
pull/7713/head
Gary Kim pirms 4 gadiem
vecāks
revīzija
28f561cac4
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      modules/markup/html.go

+ 1
- 0
modules/markup/html.go Parādīt failu

@@ -664,6 +664,7 @@ func sha1CurrentPatternProcessor(ctx *postProcessCtx, node *html.Node) {
// Because of this, we check to make sure that a matched hash is actually
// a commit in the repository before making it a link.
if _, err := git.NewCommand("rev-parse", "--verify", hash).RunInDirBytes(ctx.metas["repoPath"]); err != nil {
log.Error("sha1CurrentPatternProcessor git rev-parse: %v", err)
return
}


Notiek ielāde…
Atcelt
Saglabāt