summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2008-11-06 11:07:42 -0800
committerShawn O. Pearce <sop@google.com>2008-11-06 11:23:27 -0800
commit5d40e26201ed87ae8276a77e263b8cbe50598703 (patch)
tree3130b4b5db0466e07ed9fa4e7bb2383dc91954f6
parent70939e2f73bf118c89cf4af4988dba807c50a0ce (diff)
downloadgit-repo-1.2.tar.gz
git-repo-1.2.zip
Treat missing attributes as None when parsing the manifestv1.2
Some of our code assumes that a property is None. Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--manifest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifest.py b/manifest.py
index 2ac1453ae..9137371f3 100644
--- a/manifest.py
+++ b/manifest.py
@@ -241,6 +241,8 @@ class Manifest(object):
d = _Default()
d.remote = self._get_remote(node)
d.revision = node.getAttribute('revision')
+ if d.revision == '':
+ d.revision = None
return d
def _ParseProject(self, node):