From 8dd0c4f27aae02dd60f029db4cf03f9902cba26f Mon Sep 17 00:00:00 2001 From: Linnnus Date: Tue, 8 Apr 2025 01:07:22 +0000 Subject: feat: Initial commit At this point we have some allocation routines but no work on the actual language has been done. --- scripts/git-pre-commit-hook.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/git-pre-commit-hook.sh (limited to 'scripts/git-pre-commit-hook.sh') diff --git a/scripts/git-pre-commit-hook.sh b/scripts/git-pre-commit-hook.sh new file mode 100755 index 0000000..d6297e7 --- /dev/null +++ b/scripts/git-pre-commit-hook.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -e -u -o pipefail + +# All of this is output for humans, not programs. +exec >&2 + +unit="$(scripts/unit_test.sh)" +if [ $? -ne 0 ]; then + echo "$unit" + echo "You have failing unit tests. Aborting git commit." + exit 1 +fi -- cgit v1.2.3