mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-05-21 14:27:29 +08: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)
|
||||
|
||||
def ToRemoteSpec(self, projectName):
|
||||
url = self.resolvedFetchUrl + '/' + projectName
|
||||
url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName
|
||||
return RemoteSpec(self.name, url, self.reviewUrl)
|
||||
|
||||
class XmlManifest(object):
|
||||
|
Loading…
Reference in New Issue
Block a user