mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-23 07:16:21 +00:00
Remove extra '/' in RemoteSpec
urljoin appends a '/' if only the domain is in the url path. This change strips that off before creating a RemoteSpec
This commit is contained in:
parent
ceea368e88
commit
9d8f914fe8
@ -59,7 +59,7 @@ class _XmlRemote(object):
|
|||||||
return re.sub(r'^gopher://', '', url)
|
return re.sub(r'^gopher://', '', url)
|
||||||
|
|
||||||
def ToRemoteSpec(self, projectName):
|
def ToRemoteSpec(self, projectName):
|
||||||
url = self.resolvedFetchUrl + '/' + projectName
|
url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName
|
||||||
return RemoteSpec(self.name, url, self.reviewUrl)
|
return RemoteSpec(self.name, url, self.reviewUrl)
|
||||||
|
|
||||||
class XmlManifest(object):
|
class XmlManifest(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user