Skip to content
Snippets Groups Projects
Unverified Commit b0888a93 authored by René Fritze's avatar René Fritze
Browse files

adds script to copy all hooks to git dir

parent a6712582
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
SRC_HOOKDIR="$(cd "$(dirname ${BASH_SOURCE[0]})/../hooks" ; pwd -P )"
# this _might_ fail with git >= 2.9 if core.hooksPath is set
DST_HOOKDIR="$(git rev-parse --git-dir)/hooks"
cp -a ${SRC_HOOKDIR}/* ${DST_HOOKDIR}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment