build_manifest: fetch remote refname before checking out right commit

Working around https://gitlab.freedesktop.org/freedesktop/freedesktop/issues/95
This commit is contained in:
Thibault Saunier 2018-12-06 07:23:20 -03:00
parent 4717e446a9
commit 5856b05f30

View file

@ -181,8 +181,8 @@ if __name__ == "__main__":
else:
remote = "https://gitlab.freedesktop.org/gstreamer/gst-ci"
git('fetch', remote, sha)
git('checkout', '--detach', 'FETCH_HEAD')
git('fetch', remote, remote_refname)
git('checkout', '--detach', sha)
sys.exit(0)
projects: str = ''