mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Treat missing attributes as None when parsing the manifest
Some of our code assumes that a property is None. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
70939e2f73
commit
5d40e26201
@ -241,6 +241,8 @@ class Manifest(object):
|
|||||||
d = _Default()
|
d = _Default()
|
||||||
d.remote = self._get_remote(node)
|
d.remote = self._get_remote(node)
|
||||||
d.revision = node.getAttribute('revision')
|
d.revision = node.getAttribute('revision')
|
||||||
|
if d.revision == '':
|
||||||
|
d.revision = None
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def _ParseProject(self, node):
|
def _ParseProject(self, node):
|
||||||
|
Loading…
Reference in New Issue
Block a user