Oops. Omitted these

This commit is contained in:
Tony Garnock-Jones 2021-12-09 22:28:59 +01:00
parent 74377b87f6
commit 73dd39ff85
2 changed files with 24 additions and 0 deletions

6
git-hooks/pre-commit Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -e
exec 1>&2
# No checks yet!

18
setup.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
#
# Set up a git checkout of this repository for local dev use.
exec 2>/dev/tty 1>&2
set -e
[ -d .git ] || exit 0
for fullhook in ./git-hooks/*
do
hook=$(basename "$fullhook")
[ -L .git/hooks/$hook ] || (
echo "Installing $hook hook"
ln -s ../../git-hooks/$hook .git/hooks/$hook
)
done