diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-07 03:33:22 -0800 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-07 03:33:22 -0800 |
| commit | dcfbeffe8817e14cd512a4e39c459bcd5e1ef803 (patch) | |
| tree | 63ae05d71832c0f9a2c6180278c094029d0a56c9 | |
| parent | 12b952b6513ad7dec69c6f2b19fb27e352c89ec6 (diff) | |
| parent | 6f798f3d3f56281facd3402ce16f13954f2462bb (diff) | |
| download | gitlab-shell-dcfbeffe8817e14cd512a4e39c459bcd5e1ef803.tar.gz | |
Merge pull request #4 from redorkulated/patch-1
Correcting regex match
| -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 |
