martin/.cargo-husky/hooks/pre-push
Yuri Astrakhan ff7c31e16f
Improve pre-push hook and debug page (#509)
* write custom git pre-push via justfile
* fix tests/debug.html incorrectly loading test page
* minor cleanup of the obsolete just targets
2022-12-10 09:40:01 +02:00

18 lines
347 B
Bash
Executable File

#!/bin/sh
#
# See https://github.com/rhysd/cargo-husky#readme
#
set -e
if ! command -v just > /dev/null; then
echo "`just` is not installed. See https://github.com/casey/just#readme for installation instructions, or just run"
echo ""
echo " cargo install just"
echo ""
exit 1
fi
echo "+just git-pre-push"
just git-pre-push