Просмотр исходного кода

ci: fix file mode check in format script

Liam 2 лет назад
Родитель
Сommit
84787a2ada
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .ci/scripts/format/script.sh

+ 1 - 1
.ci/scripts/format/script.sh

@@ -25,7 +25,7 @@ for f in $FILES_TO_LINT; do
     "$CLANG_FORMAT" -i "$f"
     "$CLANG_FORMAT" -i "$f"
 done
 done
 
 
-DIFF=$(git diff)
+DIFF=$(git -c core.fileMode=false diff)
 
 
 if [ ! -z "$DIFF" ]; then
 if [ ! -z "$DIFF" ]; then
     echo "!!! Not compliant to coding style, here is the fix:"
     echo "!!! Not compliant to coding style, here is the fix:"