mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
As well as a little script to automatically configure them. (imported from commit c2e7f990f5f2091b5bebdd1b3dad402457943c95)
12 lines
281 B
Bash
Executable File
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
|