We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c528c7e commit fa99f50Copy full SHA for fa99f50
scripts/clang-tidy-diff.sh
@@ -29,7 +29,7 @@ if [ ! -e "$CLANG_TIDY_DIFF" ]; then
29
echo "Failed to find clang-tidy-diff.py ($CLANG_TIDY_DIFF)"
30
exit 1
31
fi
32
-TIDY_MSG=$(git diff -U0 $BRANCH... | $CLANG_TIDY_DIFF $ARG 2> /dev/null)
+TIDY_MSG=$(git diff -U0 $BRANCH... | $CLANG_TIDY_DIFF $ARG 2> /dev/null || true)
33
if [ -n "$TIDY_MSG" -a "$TIDY_MSG" != "No relevant changes found." ]; then
34
echo "Please fix clang-tidy errors before committing"
35
echo
0 commit comments