mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-11-14 16:27:13 +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:
1 parent
ceea368e88
commit
9d8f914fe8
1 file changed
+1
-1
+1
-1
@@ -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