From 28f561cac46ef7e51aa26aefcbe9aca4671366a6 Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Tue, 6 Aug 2019 01:30:02 +0000 Subject: [PATCH] Return error in sha1CurrentPatternProcessor Co-Authored-By: mrsdizzie --- modules/markup/html.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/markup/html.go b/modules/markup/html.go index e6c4be64cd..2fe0e4eb43 100644 --- a/modules/markup/html.go +++ b/modules/markup/html.go @@ -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 }