From 813abff93ba07fdd48111273d34653b45da58034 Mon Sep 17 00:00:00 2001 From: JAremko Date: Sun, 23 Apr 2017 08:03:43 +0300 Subject: [PATCH] test for trailing spaces in new files --- .travis-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis-build.sh b/.travis-build.sh index 89f726409..3904a6344 100755 --- a/.travis-build.sh +++ b/.travis-build.sh @@ -39,6 +39,7 @@ if [ ! -z "$FORMATTING" ]; then space-test) echo "Testing for trailing and all sorts of broken white spaces" git reset -q "${first_commit}" + git add -N . git diff --check --color > space_test_result if [[ -s space_test_result ]]; then cat space_test_result