scatterd-dotfiles/git_template/hooks/post-merge
Marek Suscak 2a59c1890f
Use if instead of && in git hooks (#680)
This prevents a Git hook from issuing a non-zero exit status if the condition is the last line of the hook.
2020-12-09 09:53:29 -05:00

9 lines
156 B
Bash
Executable file

#!/bin/sh
local_hook="$HOME"/.git_template.local/hooks/post-merge
if [ -f "$local_hook" ]; then
. "$local_hook";
fi
.git/hooks/ctags >/dev/null 2>&1 &