Skip to content

Commit f77b5e9

Browse files
committed
Fix bug
1 parent d1e8eac commit f77b5e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/repo/compare.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
407407
ctx.ServerError("RepositoryFromRequestContextOrOpen", err)
408408
return nil
409409
}
410+
// if it's not the same git repo, the HeadGitRepo should be closed out of the function
410411
} else {
411412
ctx.NotFound(nil)
412413
return nil

0 commit comments

Comments
 (0)