Skip to content

Commit 28f561c

Browse files
gary-kimmrsdizzie
andauthored
Return error in sha1CurrentPatternProcessor
Co-Authored-By: mrsdizzie <[email protected]>
1 parent 74ed0fe commit 28f561c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/markup/html.go

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

0 commit comments

Comments
 (0)