Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
57f73737
Commit
57f73737
authored
Jul 19, 2013
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove gitolite support from rewrite-hooks.sh
parent
f13afa2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
support/rewrite-hooks.sh
support/rewrite-hooks.sh
+8
-14
No files found.
support/rewrite-hooks.sh
View file @
57f73737
...
...
@@ -9,32 +9,26 @@ src=${1:-"$home_dir/repositories"}
for
dir
in
`
ls
"
$src
/"
`
do
if
[
-d
"
$src
/
$dir
"
]
;
then
if
[
"
$dir
"
=
"gitolite-admin.git"
]
then
continue
fi
if
[[
"
$dir
"
=
~ ^.
*
\.
git
$
]]
then
project_hook
=
"
$src
/
$dir
/hooks/post-receive"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
ln
-s
-f
$git
olite
_hook
$project_hook
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
ln
-s
-f
$git
lab_shell
_hook
$project_hook
project_hook
=
"
$src
/
$dir
/hooks/update"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
ln
-s
-f
$git
olite
_hook
$project_hook
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
ln
-s
-f
$git
lab_shell
_hook
$project_hook
else
for
subdir
in
`
ls
"
$src
/
$dir
/"
`
do
if
[
-d
"
$src
/
$dir
/
$subdir
"
]
&&
[[
"
$subdir
"
=
~ ^.
*
\.
git
$
]]
;
then
project_hook
=
"
$src
/
$dir
/
$subdir
/hooks/post-receive"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
ln
-s
-f
$git
olite
_hook
$project_hook
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
ln
-s
-f
$git
lab_shell
_hook
$project_hook
project_hook
=
"
$src
/
$dir
/
$subdir
/hooks/update"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
ln
-s
-f
$git
olite
_hook
$project_hook
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
ln
-s
-f
$git
lab_shell
_hook
$project_hook
fi
done
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment