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 2d29e4a commit f75b87dCopy full SHA for f75b87d
routers/web/repo/compare.go
@@ -217,7 +217,7 @@ func ParseCompareInfo(ctx *context.Context) *CompareInfo {
217
infoPath = ctx.Params("*")
218
var infos []string
219
if infoPath == "" {
220
- infos = []string{ctx.Repo.Repository.DefaultBranch, ctx.Repo.Repository.DefaultBranch}
+ infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
221
} else {
222
infos = strings.SplitN(infoPath, "...", 2)
223
if len(infos) != 2 {
0 commit comments