Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
as per lunny
Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Jun 9, 2021
commit 5236139d7ff4105ea9f2d9df9de9225f25de9b37
5 changes: 4 additions & 1 deletion modules/markup/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,10 @@ func sha1CurrentPatternProcessor(ctx *RenderContext, node *html.Node) {
log.Error("unable to open repository: %s Error: %v", ctx.Metas["repoPath"], err)
return
}
ctx.AddCancel(ctx.GitRepo.Close)
ctx.AddCancel(func() {
ctx.GitRepo.Close()
ctx.GitRepo = nil
})
}

// The regex does not lie, it matches the hash pattern.
Expand Down