update: Re add support for manifests without a refname
authorThibault Saunier <tsaunier@igalia.com>
Thu, 6 Dec 2018 13:47:04 +0000 (10:47 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 6 Dec 2018 13:47:12 +0000 (10:47 -0300)
git-update

index 9af245d..ce1a109 100755 (executable)
@@ -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"], []]