diff options
Diffstat (limited to 'support/rewrite-hooks.sh')
-rwxr-xr-x | support/rewrite-hooks.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/rewrite-hooks.sh b/support/rewrite-hooks.sh index 4f8ec05..b328f3e 100755 --- a/support/rewrite-hooks.sh +++ b/support/rewrite-hooks.sh @@ -11,7 +11,7 @@ do continue fi - if [[ "$dir" =~ ^.*.git$ ]] + if [[ "$dir" =~ ^.*\.git$ ]] then project_hook="$src/$dir/hooks/post-receive" gitolite_hook="/home/git/gitlab-shell/hooks/post-receive" @@ -23,7 +23,7 @@ do else for subdir in `ls "$src/$dir/"` do - if [ -d "$src/$dir/$subdir" ] && [[ "$subdir" =~ ^.*.git$ ]]; then + if [ -d "$src/$dir/$subdir" ] && [[ "$subdir" =~ ^.*\.git$ ]]; then project_hook="$src/$dir/$subdir/hooks/post-receive" gitolite_hook="/home/git/gitlab-shell/hooks/post-receive" ln -s -f $gitolite_hook $project_hook |