From 57f73737903e37af4651e017be4e769dea6cb4d3 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 19 Jul 2013 14:53:21 +0200 Subject: Remove gitolite support from rewrite-hooks.sh --- support/rewrite-hooks.sh | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/support/rewrite-hooks.sh b/support/rewrite-hooks.sh index 1d0542e..3c4efa4 100755 --- a/support/rewrite-hooks.sh +++ b/support/rewrite-hooks.sh @@ -9,32 +9,26 @@ src=${1:-"$home_dir/repositories"} for dir in `ls "$src/"` do if [ -d "$src/$dir" ]; then - - if [ "$dir" = "gitolite-admin.git" ] - then - continue - fi - if [[ "$dir" =~ ^.*\.git$ ]] then project_hook="$src/$dir/hooks/post-receive" - gitolite_hook="$home_dir/gitlab-shell/hooks/post-receive" - ln -s -f $gitolite_hook $project_hook + gitlab_shell_hook="$home_dir/gitlab-shell/hooks/post-receive" + ln -s -f $gitlab_shell_hook $project_hook project_hook="$src/$dir/hooks/update" - gitolite_hook="$home_dir/gitlab-shell/hooks/update" - ln -s -f $gitolite_hook $project_hook + gitlab_shell_hook="$home_dir/gitlab-shell/hooks/update" + ln -s -f $gitlab_shell_hook $project_hook else for subdir in `ls "$src/$dir/"` do if [ -d "$src/$dir/$subdir" ] && [[ "$subdir" =~ ^.*\.git$ ]]; then project_hook="$src/$dir/$subdir/hooks/post-receive" - gitolite_hook="$home_dir/gitlab-shell/hooks/post-receive" - ln -s -f $gitolite_hook $project_hook + gitlab_shell_hook="$home_dir/gitlab-shell/hooks/post-receive" + ln -s -f $gitlab_shell_hook $project_hook project_hook="$src/$dir/$subdir/hooks/update" - gitolite_hook="$home_dir/gitlab-shell/hooks/update" - ln -s -f $gitolite_hook $project_hook + gitlab_shell_hook="$home_dir/gitlab-shell/hooks/update" + ln -s -f $gitlab_shell_hook $project_hook fi done fi -- cgit v1.2.1