Files
zulip/tools/setup-git-repo
Luke Faraone 80c2eb0367 Repoint to new repository
(imported from commit bc90453bf9776b1e3d05c222f78cc66383278c32)
2013-10-07 13:43:23 -04:00

12 lines
280 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 zulip.git checkout"
exit 1
fi
for hook in pre-commit post-commit; do
ln -snf ../../tools/"$hook" .git/hooks/
done