loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

When comparing with an non-exist repository, return 404 but 500 (#27437)

authored by

Lunny Xiao and committed by
GitHub
fe68bbee dd221b9a

+3 -1
+3 -1
routers/web/repo/compare.go
··· 252 252 isSameRepo = true 253 253 ci.HeadUser = ctx.Repo.Owner 254 254 ci.HeadBranch = headInfos[0] 255 - 256 255 } else if len(headInfos) == 2 { 257 256 headInfosSplit := strings.Split(headInfos[0], "/") 258 257 if len(headInfosSplit) == 1 { ··· 407 406 return nil 408 407 } 409 408 defer ci.HeadGitRepo.Close() 409 + } else { 410 + ctx.NotFound("ParseCompareInfo", nil) 411 + return nil 410 412 } 411 413 412 414 ctx.Data["HeadRepo"] = ci.HeadRepo