From bd3df635f33082ad96a81d4255340181f73774ed Mon Sep 17 00:00:00 2001 From: allonli Date: Sun, 20 May 2018 11:10:21 +0800 Subject: [PATCH] fuck travis --- tools/pre-commit.hooks/.clang-tidy.hook | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/pre-commit.hooks/.clang-tidy.hook b/tools/pre-commit.hooks/.clang-tidy.hook index 367462daaf..3b0445e20f 100755 --- a/tools/pre-commit.hooks/.clang-tidy.hook +++ b/tools/pre-commit.hooks/.clang-tidy.hook @@ -6,8 +6,7 @@ TOTAL_ERRORS=0 # The trick to remove deleted files: https://stackoverflow.com/a/2413151 for file in $(git diff --cached --name-status | awk '$1 != "D" {print $2}' | grep -v "third-party/" | grep -v ".pb."); do - python ./tools/pre-commit.hooks/run-clang-tidy.py $file; - echo "python ./tools/pre-commit.hooks/run-clang-tidy.py $file" + bash -c "python ./tools/pre-commit.hooks/run-clang-tidy.py $file -fix"; TOTAL_ERRORS=$(expr $TOTAL_ERRORS + $?); done -- GitLab