~aleteoryx/muditaos

a6a829f5e813bc87d1e47ed486c8c3e749054827 — Adam Dobrowolski 4 years ago 5ef611b
[EGD-5238] Fixed diff failure on removed file in clang-check

Checker git diff pass was failing due to diff to removed file
1 files changed, 1 insertions(+), 1 deletions(-)

M config/clang_check.sh
M config/clang_check.sh => config/clang_check.sh +1 -1
@@ 28,7 28,7 @@ get_files_to_check()
    local endlist=()
    local file_with_ignores="$1"

    files=$(git diff -U0 --name-only remotes/origin/master...HEAD)
    files=$(git diff -U0 --name-only remotes/origin/master...HEAD --diff-filter='d')
    for file in ${files}; do
        if [[ ${file} =~ ^.*\.(cpp|hpp|c|h|cxx|gcc|cc)$ ]] && shouldnt_ignore "${file}" > "$file_with_ignores"; then
            endlist+=("$file")