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
Kazuhiko Shiozaki
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"}
...
@@ -9,32 +9,26 @@ src=${1:-"$home_dir/repositories"}
for
dir
in
`
ls
"
$src
/"
`
for
dir
in
`
ls
"
$src
/"
`
do
do
if
[
-d
"
$src
/
$dir
"
]
;
then
if
[
-d
"
$src
/
$dir
"
]
;
then
if
[
"
$dir
"
=
"gitolite-admin.git"
]
then
continue
fi
if
[[
"
$dir
"
=
~ ^.
*
\.
git
$
]]
if
[[
"
$dir
"
=
~ ^.
*
\.
git
$
]]
then
then
project_hook
=
"
$src
/
$dir
/hooks/post-receive"
project_hook
=
"
$src
/
$dir
/hooks/post-receive"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
ln
-s
-f
$git
olite
_hook
$project_hook
ln
-s
-f
$git
lab_shell
_hook
$project_hook
project_hook
=
"
$src
/
$dir
/hooks/update"
project_hook
=
"
$src
/
$dir
/hooks/update"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
ln
-s
-f
$git
olite
_hook
$project_hook
ln
-s
-f
$git
lab_shell
_hook
$project_hook
else
else
for
subdir
in
`
ls
"
$src
/
$dir
/"
`
for
subdir
in
`
ls
"
$src
/
$dir
/"
`
do
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"
project_hook
=
"
$src
/
$dir
/
$subdir
/hooks/post-receive"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/post-receive"
ln
-s
-f
$git
olite
_hook
$project_hook
ln
-s
-f
$git
lab_shell
_hook
$project_hook
project_hook
=
"
$src
/
$dir
/
$subdir
/hooks/update"
project_hook
=
"
$src
/
$dir
/
$subdir
/hooks/update"
git
olite
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
git
lab_shell
_hook
=
"
$home_dir
/gitlab-shell/hooks/update"
ln
-s
-f
$git
olite
_hook
$project_hook
ln
-s
-f
$git
lab_shell
_hook
$project_hook
fi
fi
done
done
fi
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