diff options
author | zeripath <art27@cantab.net> | 2020-05-02 09:06:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 16:06:01 +0800 |
commit | 28f8308d47af30e3ac3796034d7a3f6d5f375a3e (patch) | |
tree | 7ea3ab5a1dade0f9b166119f4592c276192373ab /routers | |
parent | 452b69b71e607a7cc15a66a0f6077738c1bff354 (diff) | |
download | gitea-28f8308d47af30e3ac3796034d7a3f6d5f375a3e.tar.gz gitea-28f8308d47af30e3ac3796034d7a3f6d5f375a3e.zip |
Show pull request selection even when unrelated branches (#11239)
Fix #10525
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/compare.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/repo/compare.go b/routers/repo/compare.go index 198c75e652..622c911bbe 100644 --- a/routers/repo/compare.go +++ b/routers/repo/compare.go @@ -320,9 +320,6 @@ func PrepareCompareDiff( compareInfo.Commits = models.ParseCommitsWithStatus(compareInfo.Commits, headRepo) ctx.Data["Commits"] = compareInfo.Commits ctx.Data["CommitCount"] = compareInfo.Commits.Len() - if ctx.Data["CommitCount"] == 0 { - ctx.Data["PageIsComparePull"] = false - } if compareInfo.Commits.Len() == 1 { c := compareInfo.Commits.Front().Value.(models.SignCommitWithStatuses) |