Skip to content
Snippets Groups Projects
Commit 40ad6d5d authored by David Gilbert's avatar David Gilbert :bug:
Browse files

ci: Changes shallow fetch to get $CI_MERGE_REQUEST_DIFF_BASE_SHA instead of branch tip.

parent 9d69ba2c
No related branches found
No related tags found
1 merge request!80UE5.3-2023.1-rc2
...@@ -58,7 +58,7 @@ clang-format: ...@@ -58,7 +58,7 @@ clang-format:
allow_failure: false allow_failure: false
script: script:
- clang-format --version - clang-format --version
- git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME --depth 1 - git fetch --depth 1 origin $CI_MERGE_REQUEST_DIFF_BASE_SHA
- echo $CI_MERGE_REQUEST_DIFF_BASE_SHA - echo $CI_MERGE_REQUEST_DIFF_BASE_SHA
- linter_errors=$(unbuffer git-clang-format --commit "$CI_MERGE_REQUEST_DIFF_BASE_SHA" *.h *.cpp -q --diff | grep -v --color=always "no modified files to format" || true) - linter_errors=$(unbuffer git-clang-format --commit "$CI_MERGE_REQUEST_DIFF_BASE_SHA" *.h *.cpp -q --diff | grep -v --color=always "no modified files to format" || true)
- echo "$linter_errors" - echo "$linter_errors"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment