From 9689fa0a45cdf753648be08e040cbb1c5668c547 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 6 Dec 2018 10:47:04 -0300 Subject: [PATCH] update: Re add support for manifests without a refname --- git-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-update b/git-update index 9af245d90b..ce1a1099ad 100755 --- a/git-update +++ b/git-update @@ -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"], []]