mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-09-27 11:12:14 +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:
committed by
Shawn O. Pearce
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):
|
||||
|
Reference in New Issue
Block a user