docker/fedora: run git gc after cloning the subprojects

Most of the subprojects specify depth=1 in the wrap file,
so this doesn't have a big effect atm.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/375>
This commit is contained in:
Jordan Petridis 2020-12-16 17:16:39 +02:00 committed by GStreamer Merge Bot
parent dbf14146b9
commit d5136450c2

View file

@ -238,3 +238,9 @@ rustc --version
git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/gst-build.git /gst-build/
cd /gst-build
meson subprojects download
# Run git gc to prune unwanted refs and reduce the size of the image
for i in $(find subprojects/ -mindepth 1- maxdepth 1 -type d);
do
git -C $i gc --aggressive || true;
done