Pagure - fix wrong commit gitweb url

The gitweb url template was wrong and this patch fixes it.

Change-Id: Ic4ead74ddfe09b2a4a90cb7ffca746dc1e132430
This commit is contained in:
Fabien Boucher 2019-09-04 11:28:57 +02:00
parent ebe67f0daa
commit 795520d286
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ class TestPagureDriver(ZuulTestCase):
self.assertEqual('project-post-job', zuulvars['job'])
self.assertEqual('master', zuulvars['branch'])
self.assertEqual(
'https://pagure/org/project/commit/%s' % zuulvars['newrev'],
'https://pagure/org/project/c/%s' % zuulvars['newrev'],
zuulvars['change_url'])
self.assertEqual(expected_newrev, zuulvars['newrev'])

View File

@ -653,7 +653,7 @@ class PagureConnection(BaseConnection):
def getGitwebUrl(self, project, sha=None):
url = '%s/%s' % (self.baseurl, project)
if sha is not None:
url += '/commit/%s' % sha
url += '/c/%s' % sha
return url
def getProjectBranches(self, project, tenant):