Files
zulip/tools/setup-git-repo
Tim Abbott a8c70f6dde Change Humbug => Zulip in tools.
(imported from commit a081a6f26407528d5952c8065f15f19c66ce9111)
2013-08-07 10:00:07 -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