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:
Conley Owens 2011-10-20 14:36:35 -07:00 committed by Shawn O. Pearce
parent ceea368e88
commit 9d8f914fe8

View File

@ -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):