Add missing gitRepo close (#16896)

pull/16924/head
6543 3 years ago committed by GitHub
parent 2fc5b08c42
commit 1f7187c973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/repo/commit.go

@ -278,6 +278,7 @@ func Diff(ctx *context.Context) {
ctx.ServerError("Repo.GitRepo.GetCommit", err)
return
}
defer gitRepo.Close()
repoPath = ctx.Repo.Repository.WikiPath()
} else {
gitRepo = ctx.Repo.GitRepo

Loading…
Cancel
Save