diff options
author | zeripath <art27@cantab.net> | 2022-01-18 07:45:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 07:45:43 +0000 |
commit | 089b4e6a4585a3d9d185abd9350e7c5d537cfa86 (patch) | |
tree | 3dce475b8653d0633b139ad65b20a9e5c7859807 /services/pull/pull.go | |
parent | a7ee4d507a0edb2fa90ac25299a27298de941a41 (diff) | |
download | gitea-089b4e6a4585a3d9d185abd9350e7c5d537cfa86.tar.gz gitea-089b4e6a4585a3d9d185abd9350e7c5d537cfa86.zip |
Use indirect comparison when showing pull requests (#18313)
When generating the commits list and number of files changed for PRs and
compare we should use "..." always not "..".
Fix #18303
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'services/pull/pull.go')
-rw-r--r-- | services/pull/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/pull/pull.go b/services/pull/pull.go index 9103da07f4..c1844372ea 100644 --- a/services/pull/pull.go +++ b/services/pull/pull.go @@ -82,7 +82,7 @@ func NewPullRequest(repo *repo_model.Repository, pull *models.Issue, labelIDs [] defer baseGitRepo.Close() compareInfo, err := baseGitRepo.GetCompareInfo(pr.BaseRepo.RepoPath(), - git.BranchPrefix+pr.BaseBranch, pr.GetGitRefName(), true, false) + git.BranchPrefix+pr.BaseBranch, pr.GetGitRefName(), false, false) if err != nil { return err } |