Rewrite hooks shell script
This commit is contained in:
parent
6e3e3e7fd2
commit
65327cfc08
1 changed files with 19 additions and 0 deletions
19
lib/support/rewrite-hooks.sh
Executable file
19
lib/support/rewrite-hooks.sh
Executable file
|
@ -0,0 +1,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
|
Loading…
Add table
Reference in a new issue