We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4126aad commit 973b7f6Copy full SHA for 973b7f6
routers/web/repo/compare.go
@@ -251,7 +251,6 @@ func ParseCompareInfo(ctx *context.Context) *CompareInfo {
251
isSameRepo = true
252
ci.HeadUser = ctx.Repo.Owner
253
ci.HeadBranch = headInfos[0]
254
-
255
} else if len(headInfos) == 2 {
256
headInfosSplit := strings.Split(headInfos[0], "/")
257
if len(headInfosSplit) == 1 {
@@ -406,6 +405,9 @@ func ParseCompareInfo(ctx *context.Context) *CompareInfo {
406
405
return nil
407
}
408
defer ci.HeadGitRepo.Close()
+ } else {
409
+ ctx.NotFound("ParseCompareInfo", nil)
410
+ return nil
411
412
413
ctx.Data["HeadRepo"] = ci.HeadRepo
0 commit comments