Skip to content
Snippets Groups Projects
Commit 117243bd authored by Corné Lukken's avatar Corné Lukken
Browse files

Restore format patch, --exit-code unkown option

parent f489e4a1
No related branches found
No related tags found
1 merge request!8Convert cookiecutter
Pipeline #61877 waiting for manual action
Pipeline: C++ project

#61878

    ...@@ -40,7 +40,10 @@ format: ...@@ -40,7 +40,10 @@ format:
    script: script:
    - scripts/format-cpp.sh - scripts/format-cpp.sh
    - scripts/format-cmake.sh - scripts/format-cmake.sh
    - git diff --exit-code 1 - git diff > format.patch
    # Fail when the patch is not empy (note ! can't be used directly.)
    - (! grep -q '^--- a' format.patch)
    artifacts: artifacts:
    when: on_failure when: on_failure
    paths: paths:
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment