Commit ba90b311 authored by Felipe Lema's avatar Felipe Lema
Browse files

correct grep to accept c++ files rather than rejecting them

parent 17650817
Pipeline #70804 failed with stage
in 1 minute and 14 seconds
...@@ -13,5 +13,5 @@ clang_format: ...@@ -13,5 +13,5 @@ clang_format:
- update-ca-certificates - update-ca-certificates
script: script:
- wget -c --output-document=.clang-format https://invent.kde.org/frameworks/extra-cmake-modules/raw/master/kde-modules/clang-format.cmake - wget -c --output-document=.clang-format https://invent.kde.org/frameworks/extra-cmake-modules/raw/master/kde-modules/clang-format.cmake
- git diff-tree --no-commit-id --name-only -r origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA | grep -v -P '[.](c|cc|cpp|hpp|h)$'| xargs clang-format-11 -i - git diff-tree --no-commit-id --name-only -r origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA | grep -P '[.](c|cc|cpp|hpp|h)$'| xargs clang-format-11 -i
- git diff --exit-code - git diff --exit-code
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment