1
0
Fork 0

Fix XmlManifest.Save with remotes that have 'alias' set

When the alias attribute is set for a remote, the RemoteSpec attached to
a Project only contains the alias name used by git, not the original
name used in the manifest. But that's not enough information to
reconstruct the manifest, so save off the original manifest name as
another RemoteSpec parameter, only used to write the manifest out.

Bug: Issue 181
Bug: Issue 219
Change-Id: Id7417dfd6ce5572e4e5fe14f22924fdf088ca4f3
This commit is contained in:
Dan Willemsen 2016-04-06 16:03:54 -07:00 committed by David Pursehouse
parent cee5c77166
commit 96c2d65489
2 changed files with 11 additions and 6 deletions

View file

@ -315,11 +315,13 @@ class RemoteSpec(object):
name,
url=None,
review=None,
revision=None):
revision=None,
orig_name=None):
self.name = name
self.url = url
self.review = review
self.revision = revision
self.orig_name = orig_name
class RepoHook(object):