mirror of
https://github.com/maplibre/martin.git
synced 2024-12-18 20:31:54 +03:00
16a54e1c33
This will prevent installation issues in case dependencies break semver promise Fixes #1211
26 lines
891 B
Bash
Executable File
26 lines
891 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# See https://github.com/rhysd/cargo-husky#readme
|
|
#
|
|
|
|
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 "To simplify this, create an alias, e.g. like so:"
|
|
echo " git config --global alias.pushn 'push --no-verify'"
|
|
echo "Then you can use git pushn to push without testing"
|
|
echo "----------------------------------------------------------------------------------------"
|
|
|
|
set -e
|
|
|
|
if ! command -v just > /dev/null; then
|
|
echo "Command 'just' is not installed. See https://github.com/casey/just#readme for installation instructions, or use"
|
|
echo ""
|
|
echo " cargo install just --locked"
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
|
|
echo "+just git-pre-push"
|
|
just git-pre-push
|