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 51001d9 commit a9d547fCopy full SHA for a9d547f
routers/web/repo/compare.go
@@ -252,7 +252,6 @@ func ParseCompareInfo(ctx *context.Context) *CompareInfo {
252
isSameRepo = true
253
ci.HeadUser = ctx.Repo.Owner
254
ci.HeadBranch = headInfos[0]
255
-
256
} else if len(headInfos) == 2 {
257
headInfosSplit := strings.Split(headInfos[0], "/")
258
if len(headInfosSplit) == 1 {
@@ -407,6 +406,9 @@ func ParseCompareInfo(ctx *context.Context) *CompareInfo {
407
406
return nil
408
}
409
defer ci.HeadGitRepo.Close()
+ } else {
410
+ ctx.NotFound("ParseCompareInfo", nil)
411
+ return nil
412
413
414
ctx.Data["HeadRepo"] = ci.HeadRepo
0 commit comments