]> source.dussan.org Git - gitea.git/commit
Defer closing the gitrepo until the end of the wrapped context functions (#15653...
authorzeripath <art27@cantab.net>
Fri, 7 May 2021 16:28:02 +0000 (17:28 +0100)
committerGitHub <noreply@github.com>
Fri, 7 May 2021 16:28:02 +0000 (18:28 +0200)
commit6782a64a4ab0d3e0f6537b739f263c596be9bbb3
treef84fe35ff646654d91eacd0d309a2f6894112ce0
parent1ec11ac87e5c797087a9773caa93b5632ba1251b
Defer closing the gitrepo until the end of the wrapped context functions (#15653) (#15746)

* Defer closing the gitrepo until the end of the wrapped context functions (#15653)

Backport #15653

There was a mistake in #15372 where deferral of gitrepo close occurs before it should.

This PR fixes this.
modules/context/repo.go
modules/web/route.go