summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-04-06 16:03:54 -0700
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2016-04-22 10:32:06 +0900
commit96c2d654897ffe82d7df9f1dd2295cda5809be73 (patch)
tree50f12eb584bb4ea64e4c43757ace386678c1f9c9 /project.py
parentcee5c771664833e517f47c0a33e520fd967cbe57 (diff)
downloadgit-repo-96c2d654897ffe82d7df9f1dd2295cda5809be73.tar.gz
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
Diffstat (limited to 'project.py')
-rw-r--r--project.py4
1 files changed, 3 insertions, 1 deletions
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):
315 name, 315 name,
316 url=None, 316 url=None,
317 review=None, 317 review=None,
318 revision=None): 318 revision=None,
319 orig_name=None):
319 self.name = name 320 self.name = name
320 self.url = url 321 self.url = url
321 self.review = review 322 self.review = review
322 self.revision = revision 323 self.revision = revision
324 self.orig_name = orig_name
323 325
324 326
325class RepoHook(object): 327class RepoHook(object):