update: Re add support for manifests without a refname

This commit is contained in:
Thibault Saunier 2018-12-06 10:47:04 -03:00
parent d1425b0307
commit 9689fa0a45

View file

@ -27,7 +27,7 @@ def manifest_get_commits(manifest):
remote = child.attrib.get('remote')
if remote:
res[path] = [child.attrib["revision"], [os.path.join(remotes[remote], name), child.attrib['refname']]]
res[path] = [child.attrib["revision"], [os.path.join(remotes[remote], name), child.attrib.get('refname', child.attrib["revision"])]]
else:
res[path] = [child.attrib["revision"], []]