Files
zulip/tools/setup-git-repo
Tim Abbott 1ab3918338 Add pre-commit and post-commit hooks for use on dev systems.
As well as a little script to automatically configure them.

(imported from commit c2e7f990f5f2091b5bebdd1b3dad402457943c95)
2013-05-30 10:29:44 -04:00

12 lines
281 B
Bash
Executable File

#!/bin/bash
if ! [ -d ".git/hooks/" ]; then
echo "Error: Could not find .git/hooks directory"
echo "Please re-run this script from the root of your Humbug git checkout"
exit 1
fi
for hook in pre-commit post-commit; do
ln -snf ../../tools/"$hook" .git/hooks/
done