diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-07-19 14:53:21 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-07-19 15:28:10 +0200 |
commit | 57f73737903e37af4651e017be4e769dea6cb4d3 (patch) | |
tree | 02e7a86a80b154684a9f86a85e42a955941256a1 | |
parent | f13afa2db3f3b44a9a6f97b88eced3f324f80b51 (diff) | |
download | gitlab-shell-57f73737903e37af4651e017be4e769dea6cb4d3.tar.gz |
Remove gitolite support from rewrite-hooks.sh
-rwxr-xr-x | support/rewrite-hooks.sh | 22 |
1 files 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 |