pre-commit: Call lint-all with --force.

This commit is contained in:
Tim Abbott 2016-11-26 12:30:16 -08:00
parent 604079a9d4
commit 25c6b9f586
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@
# will automatically be run through `vagrant ssh`. # will automatically be run through `vagrant ssh`.
if [ -z "$VIRTUAL_ENV" ] && `which vagrant > /dev/null` && [ -e .vagrant ]; then if [ -z "$VIRTUAL_ENV" ] && `which vagrant > /dev/null` && [ -e .vagrant ]; then
vcmd='/srv/zulip/tools/lint-all $(cd /srv/zulip && git diff --cached --name-only --diff-filter=ACM) || true' vcmd='/srv/zulip/tools/lint-all --force $(cd /srv/zulip && git diff --cached --name-only --diff-filter=ACM) || true'
echo "Running lint-all using vagrant..." echo "Running lint-all using vagrant..."
vagrant ssh -c "$vcmd" vagrant ssh -c "$vcmd"
else else
./tools/lint-all $(git diff --cached --name-only --diff-filter=ACM) || true ./tools/lint-all --force $(git diff --cached --name-only --diff-filter=ACM) || true
fi fi
exit 0 exit 0