mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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
This commit is contained in:
parent
07669002cb
commit
33e0456737
@ -82,8 +82,6 @@ class _XmlRemote(object):
|
|||||||
def ToRemoteSpec(self, projectName):
|
def ToRemoteSpec(self, projectName):
|
||||||
url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName
|
url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName
|
||||||
remoteName = self.name
|
remoteName = self.name
|
||||||
if self.remoteAlias:
|
|
||||||
remoteName = self.remoteAlias
|
|
||||||
return RemoteSpec(remoteName, url, self.reviewUrl)
|
return RemoteSpec(remoteName, url, self.reviewUrl)
|
||||||
|
|
||||||
class XmlManifest(object):
|
class XmlManifest(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user