blob: 4b779fea8368eaf6c8229dff6c8bb55cee743f2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
GITPATH="/srv/repositories/"
GIT_TOOLS=$(readlink -f $(dirname $0))
umask 0022
for path in $(find -L $GITPATH -type d -name hooks) ; do
HOOKFILE="${path}/post-update"
if [ ! -f $HOOKFILE ]
then
# hook file does not exist, create (link)
ln -s ${GIT_TOOLS}/git-hooks/post-update $HOOKFILE
fi
done
|