]> source.dussan.org Git - gitea.git/commit
Defer closing the gitrepo until the end of the wrapped context functions (#15653)
authorzeripath <art27@cantab.net>
Wed, 5 May 2021 23:30:25 +0000 (00:30 +0100)
committerGitHub <noreply@github.com>
Wed, 5 May 2021 23:30:25 +0000 (01:30 +0200)
commiteedc0c8324820817f4c06603ec3195a1d3513542
treead14f7d5baf7ffe8fe73d8704dd84193d8f84e4b
parente071b53686572c6a31c17655fbfa0035945cfb59
Defer closing the gitrepo until the end of the wrapped context functions (#15653)

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

This PR fixes this.

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/context/repo.go
modules/web/route.go