As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 57f73737 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Remove gitolite support from rewrite-hooks.sh

parent f13afa2d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment