Skip to content

Commit

Permalink
simple code
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Dec 16, 2021
1 parent 2d29e4a commit f75b87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func ParseCompareInfo(ctx *context.Context) *CompareInfo {
infoPath = ctx.Params("*")
var infos []string
if infoPath == "" {
infos = []string{ctx.Repo.Repository.DefaultBranch, ctx.Repo.Repository.DefaultBranch}
infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
} else {
infos = strings.SplitN(infoPath, "...", 2)
if len(infos) != 2 {
Expand Down

0 comments on commit f75b87d

Please sign in to comment.