diff options
author | Sven Gothel <[email protected]> | 2010-11-29 03:34:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-29 03:34:26 +0100 |
commit | fa337a3723a2b376bdc7f74da5f5321eb8cb57f3 (patch) | |
tree | aafdd3219f7a6b80f64901e37228f26b37c02f9f /git/git-enable-post-update-hook.sh | |
parent | f44fb7920627ac00d2c3f949793d0d92fdea1bcd (diff) |
Add git scripts/doc; enable post update hook in git-make script
Diffstat (limited to 'git/git-enable-post-update-hook.sh')
-rwxr-xr-x | git/git-enable-post-update-hook.sh | 12 |
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 |