Skip to content

Commit f75b87d

Browse files
committed
simple code
1 parent 2d29e4a commit f75b87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/compare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func ParseCompareInfo(ctx *context.Context) *CompareInfo {
217217
infoPath = ctx.Params("*")
218218
var infos []string
219219
if infoPath == "" {
220-
infos = []string{ctx.Repo.Repository.DefaultBranch, ctx.Repo.Repository.DefaultBranch}
220+
infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
221221
} else {
222222
infos = strings.SplitN(infoPath, "...", 2)
223223
if len(infos) != 2 {

0 commit comments

Comments
 (0)