Skip to content

Commit 206f252

Browse files
committed
Suggest how to fix whitespace issues in a commit
1 parent 83db8a2 commit 206f252

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ before_install:
4242
script:
4343
- if git --no-pager grep --color -n --full-name ' $' -- \*.jl \*.scm \*.c \*.cpp \*.h; then
4444
echo "Error trailing whitespace found in source file(s)";
45+
echo "";
46+
echo "This can often be fixed with:";
47+
echo " git rebase --whitespace=fix HEAD~1";
48+
echo "or";
49+
echo " git rebase --whitespace=fix master";
50+
echo "and then a forced push of the correct branch";
4551
exit 1;
4652
fi
4753
- make $BUILDOPTS prefix=/tmp/julia install

0 commit comments

Comments
 (0)