Skip to content

Commit 08917e0

Browse files
committed
Make Travis-CI pre-commit check more readable.
1 parent 18fabf6 commit 08917e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

paddle/scripts/travis/precommit.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ cd ..
1212
export PATH=/usr/bin:$PATH
1313
pre-commit install
1414
clang-format --version
15-
pre-commit run -a
15+
16+
if ! pre-commit run -a ; then
17+
git diff --exit-code
18+
fi
1619

1720
trap : 0

0 commit comments

Comments
 (0)