Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
commit-msg: Don’t change the current directory for non-Vagrant.
Anders Kaseorg8a128ba81ebf
diff --git a/tools/commit-msg b/tools/commit-msgindex 118d33b1078..6efea1f667c 100755--- a/tools/commit-msg+++ b/tools/commit-msg@@ -7,12 +7,11 @@# Do not invoke gitlint if commit message is emptyif grep -q '^[^#]' "$1"; then- lint_cmd="cd ~/zulip && gitlint"ifif [ -z "$VIRTUAL_ENV" ] && command -v vagrant >/dev/null && [ -e .vagrant ]; then- ! vagrant ssh -c "$lint_cmd"+ ! vagrant ssh -c 'cd ~/zulip && gitlint'else- ! eval "$lint_cmd"+ ! gitlintfi <"$1"thenecho "WARNING: Your commit message does not match Zulip's style guide."