4 all: git_hooks vim_helpers
5 $(info make git_hooks: set up Git repository hooks)
6 $(info make vim_hooks: set up Vim settings for puppet files)
10 @if ! git config --get remote.origin.push '^HEAD$$' >/dev/null; then \
11 git config --add remote.origin.push HEAD; \
13 @if git config --get remote.origin.push '^refs/notes/audit:refs/notes/audit$$' >/dev/null; then \
14 git config --unset remote.origin.push refs/notes/audit:refs/notes/audit; \
16 @if git config --get branch.master.rebase true >/dev/null; then \
17 git config branch.master.rebase true; \
19 @ln -sf ../../tools/git-hooks/pre-commit .git/hooks/pre-commit
20 @$(RM) .git/hooks/post-commit
24 @rsync -a tools/vim/ ~/.vim/