Skip to content

Commit

Permalink
Return error in sha1CurrentPatternProcessor
Browse files Browse the repository at this point in the history
Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
  • Loading branch information
gary-kim and mrsdizzie committed Aug 6, 2019
1 parent 74ed0fe commit 28f561c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/markup/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 28f561c

Please sign in to comment.