summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorBrian Harring <ferringb@google.com>2012-12-25 06:32:27 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-04-03 20:54:49 +0000
commit33e045673786f3477e805ade0f337de08e89a7a8 (patch)
tree83dfd25c4794abbb287a37b8279099181bb9c080 /manifest_xml.py
parent07669002cbc1cdb3f5587660a140b3203b7fb552 (diff)
downloadgit-repo-33e045673786f3477e805ade0f337de08e89a7a8.tar.gz
Fix `repo manifest` support of remote aliases.
Long story short, w/out this modification the manifest dump points at the alias, rather than the actual remote for the project. This breaks sync'ing for scenarios where the alias doesn't have the same repos available as the remote, plus just plain is wrong. Change-Id: I7150e449341ed8655d398956a095261978d95870
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 50417c60..92ef7859 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -82,8 +82,6 @@ class _XmlRemote(object):
82 def ToRemoteSpec(self, projectName): 82 def ToRemoteSpec(self, projectName):
83 url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName 83 url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName
84 remoteName = self.name 84 remoteName = self.name
85 if self.remoteAlias:
86 remoteName = self.remoteAlias
87 return RemoteSpec(remoteName, url, self.reviewUrl) 85 return RemoteSpec(remoteName, url, self.reviewUrl)
88 86
89class XmlManifest(object): 87class XmlManifest(object):