diff options
author | Jooncheol Park <jooncheol@gmail.com> | 2012-08-27 02:25:59 +0900 |
---|---|---|
committer | gerrit code review <noreply-gerritcodereview@google.com> | 2012-09-07 08:38:08 -0700 |
commit | 34acdd253439448b6c08c3abfc5e7b8bd03f383f (patch) | |
tree | f3290384d6d47fa8187678f75ed9885dbbfad20e /subcmds/sync.py | |
parent | d94aaef39e301cc912968c07d1783232bf34a174 (diff) | |
download | git-repo-34acdd253439448b6c08c3abfc5e7b8bd03f383f.tar.gz |
Fix ManifestParseError when first child node is commentv1.10.4
If the first line of manifest.xml is a XML comment, root.childNodes[0]
is not a 'manifest' element node. The python minidom module will makes
a 'Comment' node as root.childNodes[0]. Since the original code only
checks whether the first child node is 'manifest', it couldn't do any
command including 'sync' due to the 'ManifestParseError' exception. This
patch could allow the comments between '<?xml ...?>' and '<manifest>' in
the manifest.xml file.
Change-Id: I0b81dea4f806965eca90f704c8aa7df49c579402
Diffstat (limited to 'subcmds/sync.py')
0 files changed, 0 insertions, 0 deletions