diff options
| author | Shawn O. Pearce <sop@google.com> | 2008-11-06 11:07:42 -0800 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2008-11-06 11:23:27 -0800 |
| commit | 5d40e26201ed87ae8276a77e263b8cbe50598703 (patch) | |
| tree | 3130b4b5db0466e07ed9fa4e7bb2383dc91954f6 /manifest.py | |
| parent | 70939e2f73bf118c89cf4af4988dba807c50a0ce (diff) | |
| download | git-repo-5d40e26201ed87ae8276a77e263b8cbe50598703.tar.gz | |
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>
Diffstat (limited to 'manifest.py')
| -rw-r--r-- | manifest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manifest.py b/manifest.py index 2ac1453a..9137371f 100644 --- a/manifest.py +++ b/manifest.py | |||
| @@ -241,6 +241,8 @@ class Manifest(object): | |||
| 241 | d = _Default() | 241 | d = _Default() |
| 242 | d.remote = self._get_remote(node) | 242 | d.remote = self._get_remote(node) |
| 243 | d.revision = node.getAttribute('revision') | 243 | d.revision = node.getAttribute('revision') |
| 244 | if d.revision == '': | ||
| 245 | d.revision = None | ||
| 244 | return d | 246 | return d |
| 245 | 247 | ||
| 246 | def _ParseProject(self, node): | 248 | def _ParseProject(self, node): |
