From 96c2d654897ffe82d7df9f1dd2295cda5809be73 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 6 Apr 2016 16:03:54 -0700 Subject: 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 --- project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'project.py') diff --git a/project.py b/project.py index e0bd9c10..8213e431 100644 --- a/project.py +++ b/project.py @@ -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): -- cgit v1.2.3-54-g00ecf