mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
ci: handle changing wrap file refs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7821>
This commit is contained in:
parent
ce35c07639
commit
76a037d29a
1 changed files with 9 additions and 0 deletions
|
@ -68,6 +68,15 @@ def copy_cache(options):
|
|||
|
||||
print("Copying from %s -> %s" % (cache_dir, project_path))
|
||||
shutil.copytree(cache_dir, project_path)
|
||||
|
||||
# workaround `meson subprojects download` only providing a shallow
|
||||
# clone.
|
||||
# If we need to change refs, then the git repo will only ever be
|
||||
# able to reference the originally cloned ref.
|
||||
git_path = os.path.join(project_path, '.git')
|
||||
if os.path.exists(git_path):
|
||||
subprocess.check_call(['git', '-C', git_path, 'remote', 'set-branches', 'origin', '*'])
|
||||
|
||||
subprocess.check_call(['meson', 'subprojects', 'update', '--reset'])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue