From 25c6b9f586e5009ffbcab0d357033cf4ac2d206e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 26 Nov 2016 12:30:16 -0800 Subject: [PATCH] pre-commit: Call lint-all with --force. --- tools/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pre-commit b/tools/pre-commit index 4dca788879..cf59100bf6 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -10,10 +10,10 @@ # will automatically be run through `vagrant ssh`. 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..." vagrant ssh -c "$vcmd" 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 exit 0