diff options
author | Conley Owens <cco3@android.com> | 2011-10-20 14:36:35 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2011-11-03 13:05:14 -0700 |
commit | 9d8f914fe8ac75e18e0da2b7ce4886a2ba490fc6 (patch) | |
tree | ff7fef6ee9840cdb1fb762cbb58e5ffc3ec6232e | |
parent | ceea368e887b1c1c600400f40564eca4f8b40192 (diff) | |
download | git-repo-9d8f914fe8ac75e18e0da2b7ce4886a2ba490fc6.tar.gz |
Remove extra '/' in RemoteSpecv1.7.7.6
urljoin appends a '/' if only the domain is in the url path. This
change strips that off before creating a RemoteSpec
-rw-r--r-- | manifest_xml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 02a5f9ae..9189eec4 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -59,7 +59,7 @@ class _XmlRemote(object): | |||
59 | return re.sub(r'^gopher://', '', url) | 59 | return re.sub(r'^gopher://', '', url) |
60 | 60 | ||
61 | def ToRemoteSpec(self, projectName): | 61 | def ToRemoteSpec(self, projectName): |
62 | url = self.resolvedFetchUrl + '/' + projectName | 62 | url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName |
63 | return RemoteSpec(self.name, url, self.reviewUrl) | 63 | return RemoteSpec(self.name, url, self.reviewUrl) |
64 | 64 | ||
65 | class XmlManifest(object): | 65 | class XmlManifest(object): |