indent: Ignore any changes in medias/
authorThibault Saunier <tsaunier@igalia.com>
Wed, 29 Sep 2021 12:22:06 +0000 (09:22 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 29 Sep 2021 16:40:00 +0000 (16:40 +0000)
It is a submodule and we do not care about it

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/952>

.gitlab-ci.yml

index 11d04ac..5f8fe93 100644 (file)
@@ -361,10 +361,10 @@ gst indent:
     - indent --version || true
     - ./scripts/gst-indent-all
     - |
-      if git diff --quiet; then
+      if git diff --quiet -- ':!subprojects/gst-integration-testsuites/medias' .; then
           echo "Code is properly formatted"
       else
-          git diff --color=always
+          git diff --color=always -- ':!subprojects/gst-integration-testsuites/medias' .
           echo 'style diverges, please run gst-indent first'
           exit 1
       fi