From f77b5e9f4e0e669d1a6a7eb922281bc16db807de Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 30 Apr 2025 23:16:42 -0700 Subject: [PATCH] Fix bug --- routers/web/repo/compare.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index 8b99dd95da..94e0c04394 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.go @@ -407,6 +407,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo { ctx.ServerError("RepositoryFromRequestContextOrOpen", err) return nil } + // if it's not the same git repo, the HeadGitRepo should be closed out of the function } else { ctx.NotFound(nil) return nil