summaryrefslogtreecommitdiffstats
path: root/git/git-enable-post-update-hook.sh
blob: 3a65269312ea974b0f0887ee4b78458cf2f7dfdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

gitinstall=/opt-linux-x86_64
thisdir=`pwd`

for i in *.git ; do 
    echo $i 
    cp -av $gitinstall/share/git-core/templates/hooks/post-update.sample $i/hooks/post-update
    cd $i
    git update-server-info
    cd $thisdir
done