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
helps if you try to open the repository path!
Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Jun 8, 2021
commit a06d2c08f850d11da6c130b1e1ceacd4dc715427
4 changes: 2 additions & 2 deletions modules/markup/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ func sha1CurrentPatternProcessor(ctx *RenderContext, node *html.Node) {

if ctx.GitRepo == nil {
var err error
ctx.GitRepo, err = git.OpenRepository(ctx.Metas["repo"])
ctx.GitRepo, err = git.OpenRepository(ctx.Metas["repoPath"])
if err != nil {
log.Error("unable to open repository: %s Error: %v", ctx.Metas["repo"], err)
log.Error("unable to open repository: %s Error: %v", ctx.Metas["repoPath"], err)
return
}
ctx.AddCancel(ctx.GitRepo.Close)
Expand Down