update: Fetch the refname before checking out the specified sha
authorThibault Saunier <tsaunier@igalia.com>
Thu, 6 Dec 2018 10:48:23 +0000 (07:48 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 6 Dec 2018 10:56:05 +0000 (07:56 -0300)
Working around freedesktop/freedesktop#95

git-update

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