From fa337a3723a2b376bdc7f74da5f5321eb8cb57f3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 29 Nov 2010 03:34:26 +0100 Subject: Add git scripts/doc; enable post update hook in git-make script --- git/git-enable-post-update-hook.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 git/git-enable-post-update-hook.sh (limited to 'git/git-enable-post-update-hook.sh') 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 -- cgit v1.2.3