There was an error while loading. Please reload this page.
2 parents 12b952b + 6f798f3 commit dcfbeffCopy full SHA for dcfbeff
support/rewrite-hooks.sh
@@ -11,7 +11,7 @@ do
11
continue
12
fi
13
14
- if [[ "$dir" =~ ^.*.git$ ]]
+ if [[ "$dir" =~ ^.*\.git$ ]]
15
then
16
project_hook="$src/$dir/hooks/post-receive"
17
gitolite_hook="/home/git/gitlab-shell/hooks/post-receive"
@@ -23,7 +23,7 @@ do
23
else
24
for subdir in `ls "$src/$dir/"`
25
do
26
- if [ -d "$src/$dir/$subdir" ] && [[ "$subdir" =~ ^.*.git$ ]]; then
+ if [ -d "$src/$dir/$subdir" ] && [[ "$subdir" =~ ^.*\.git$ ]]; then
27
project_hook="$src/$dir/$subdir/hooks/post-receive"
28
29
ln -s -f $gitolite_hook $project_hook
0 commit comments