Files
zulip/tools/setup-git-repo
Anders Kaseorg 9a17d70cd7 shfmt: Reformat shell scripts with shfmt.
https://github.com/mvdan/sh

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit dfaea9df65)
2020-10-28 17:12:50 -07:00

12 lines
287 B
Bash
Executable File

#!/usr/bin/env 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 commit-msg; do
ln -snf ../../tools/"$hook" .git/hooks/
done