summaryrefslogtreecommitdiffstats
path: root/git/git-enable-post-update-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git/git-enable-post-update-hook.sh')
-rwxr-xr-xgit/git-enable-post-update-hook.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/git/git-enable-post-update-hook.sh b/git/git-enable-post-update-hook.sh
new file mode 100755
index 0000000..3a65269
--- /dev/null
+++ b/git/git-enable-post-update-hook.sh
@@ -0,0 +1,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