gerrit: rstrip baseurl trailing /
Gerrit connection baseurl doesn't work if the baseurl has a trailing /. Change-Id: Idae127f3cc1953305f93b0b0b2891532b1253797
This commit is contained in:
parent
19afda37a3
commit
e877916df6
|
@ -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}'
|
||||
|
|
Loading…
Reference in New Issue