create-subprojects-cache: Remove git gc call

The repos on github/gitlab are mostly pruned when we
clone them now, so we can remove the manual gc and make
the build faster.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5629>
This commit is contained in:
Jordan Petridis 2023-10-24 06:48:59 +03:00 committed by GStreamer Marge Bot
parent abda8d362a
commit 7e6cb3e15f

View file

@ -8,11 +8,5 @@ git -C /gstreamer submodule update --init --depth=1
meson subprojects download --sourcedir /gstreamer meson subprojects download --sourcedir /gstreamer
./ci/scripts/handle-subprojects-cache.py --build --cache-dir /subprojects /gstreamer/subprojects/ ./ci/scripts/handle-subprojects-cache.py --build --cache-dir /subprojects /gstreamer/subprojects/
# 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
# Now remove the gstreamer clone # Now remove the gstreamer clone
rm -rf /gstreamer rm -rf /gstreamer