diff options
author | zeripath <art27@cantab.net> | 2020-06-12 00:49:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 19:49:47 -0400 |
commit | 0973c036019c955172ebce99d58eede2e9ac55ca (patch) | |
tree | 7c49364bba0ebfb4eb8c4bb5194f643629b929bc /services/pull/pull.go | |
parent | 6c2a59b50c2af367281492b6c6adc9061e57b0a9 (diff) | |
download | gitea-0973c036019c955172ebce99d58eede2e9ac55ca.tar.gz gitea-0973c036019c955172ebce99d58eede2e9ac55ca.zip |
Handle more pathological branch and tag names (#11843)
* Handle more pathological branch and tag names
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix failing test
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
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 e8912e47c6..f7a187848a 100644 --- a/services/pull/pull.go +++ b/services/pull/pull.go @@ -66,7 +66,7 @@ func NewPullRequest(repo *models.Repository, pull *models.Issue, labelIDs []int6 defer baseGitRepo.Close() compareInfo, err := baseGitRepo.GetCompareInfo(pr.BaseRepo.RepoPath(), - pr.BaseBranch, pr.GetGitRefName()) + git.BranchPrefix+pr.BaseBranch, pr.GetGitRefName()) if err != nil { return err } |