Skip to content
Snippets Groups Projects
Commit 65327cfc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Rewrite hooks shell script

parent 6e3e3e7f
No related branches found
No related tags found
No related merge requests found
#!/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
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