gerrit: rstrip baseurl trailing /

Gerrit connection baseurl doesn't work if the baseurl has a trailing /.

Change-Id: Idae127f3cc1953305f93b0b0b2891532b1253797
This commit is contained in:
Tristan Cacqueray 2018-07-12 03:55:48 +00:00
parent 19afda37a3
commit e877916df6
1 changed files with 2 additions and 2 deletions

View File

@ -302,8 +302,8 @@ class GerritConnection(BaseConnection):
self.event_queue = queue.Queue()
self.client = None
self.baseurl = self.connection_config.get('baseurl',
'https://%s' % self.server)
self.baseurl = self.connection_config.get(
'baseurl', 'https://%s' % self.server).rstrip('/')
default_gitweb_url_template = '{baseurl}/gitweb?' \
'p={project.name}.git;' \
'a=commitdiff;h={sha}'