Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Tatuya Kamada
gitlab-ce
Commits
18fc0900
Commit
18fc0900
authored
Feb 05, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove hooks and support scripts from main repo. Moved to gitlab-shell
parent
bd3288e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
55 deletions
+0
-55
lib/hooks/post-receive
lib/hooks/post-receive
+0
-12
lib/support/rewrite-hooks.sh
lib/support/rewrite-hooks.sh
+0
-32
lib/support/truncate_repositories.sh
lib/support/truncate_repositories.sh
+0
-11
No files found.
lib/hooks/post-receive
deleted
100755 → 0
View file @
bd3288e3
#!/usr/bin/env bash
# Version 4.1
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
while
read
oldrev newrev ref
do
# For every branch or tag that was pushed, create a Resque job in redis.
repo_path
=
`
pwd
`
env
-i
redis-cli rpush
"resque:gitlab:queue:post_receive"
"{
\"
class
\"
:
\"
PostReceive
\"
,
\"
args
\"
:[
\"
$repo_path
\"
,
\"
$oldrev
\"
,
\"
$newrev
\"
,
\"
$ref
\"
,
\"
$GL_USER
\"
]}"
>
/dev/null 2>&1
done
lib/support/rewrite-hooks.sh
deleted
100755 → 0
View file @
bd3288e3
#!/bin/bash
src
=
"/home/git/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"
gitolite_hook
=
"/home/git/.gitolite/hooks/common/post-receive"
ln
-s
-f
$gitolite_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"
gitolite_hook
=
"/home/git/.gitolite/hooks/common/post-receive"
ln
-s
-f
$gitolite_hook
$project_hook
fi
done
fi
fi
done
lib/support/truncate_repositories.sh
deleted
100755 → 0
View file @
bd3288e3
#!/bin/bash
echo
"Danger!!! Data Loss"
while
true
;
do
read
-p
"Do you wish to all directories except gitolite-admin.git from /home/git/repositories/ (y/n) ?: "
yn
case
$yn
in
[
Yy]
*
)
sh
-c
"find /home/git/repositories/. -maxdepth 1 -not -name 'gitolite-admin.git' -not -name '.' | xargs sudo rm -rf"
;
break
;;
[
Nn]
*
)
exit
;;
*
)
echo
"Please answer yes or no."
;;
esac
done
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