mirror of https://github.com/zulip/zulip.git
12 lines
281 B
Plaintext
12 lines
281 B
Plaintext
|
#!/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
|