update: Fetch the refname before checking out the specified sha

Working around freedesktop/freedesktop#95
This commit is contained in:
Thibault Saunier 2018-12-06 07:48:23 -03:00
parent 636abc351b
commit d1425b0307

View file

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