Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rewrite-hooks.sh « support « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6688785a1792831256c576a1d3bda91e2d2b0e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

src="/home/git/repositories"

for dir in `ls "$src/"`
do
  if [ -d "$src/$dir" ]; then

    if [ "$dir" = "gitolite-admin.git" ]
    then
      continue 
    fi

    project_hook="$src/$dir/hooks/post-receive"
    gitolite_hook="/home/git/.gitolite/hooks/common/post-receive"

    ln -s -f $gitolite_hook $project_hook
  fi
done