martin/.cargo-husky/hooks/pre-push

23 lines
699 B
Plaintext
Raw Normal View History

#!/bin/sh
#
# See https://github.com/rhysd/cargo-husky#readme
#
2023-08-15 22:41:30 +03:00
echo "----------------------------------------------------------------------------------------"
echo "These tests run automatically before the git push"
echo "If you want to push your changes without testing them first, use git push --no-verify"
echo "----------------------------------------------------------------------------------------"
set -e
if ! command -v just > /dev/null; then
2023-08-15 22:43:26 +03:00
echo "Command 'just' is not installed. See https://github.com/casey/just#readme for installation instructions, or use"
echo ""
echo " cargo install just"
echo ""
exit 1
fi
echo "+just git-pre-push"
just git-pre-push