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
1
Merge Requests
1
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-ce
Commits
a54a9018
Commit
a54a9018
authored
Oct 09, 2012
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary task
parent
41e53eb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
lib/tasks/gitlab/write_hook.rake
lib/tasks/gitlab/write_hook.rake
+0
-21
No files found.
lib/tasks/gitlab/write_hook.rake
deleted
100644 → 0
View file @
41e53eb9
namespace
:gitlab
do
namespace
:gitolite
do
desc
"GITLAB | Write GitLab hook for gitolite"
task
:write_hooks
=>
:environment
do
gitolite_hooks_path
=
File
.
join
(
Gitlab
.
config
.
git_hooks_path
,
"common"
)
gitlab_hooks_path
=
Rails
.
root
.
join
(
"lib"
,
"hooks"
)
gitlab_hook_files
=
[
'post-receive'
]
gitlab_hook_files
.
each
do
|
file_name
|
source
=
File
.
join
(
gitlab_hooks_path
,
file_name
)
dest
=
File
.
join
(
gitolite_hooks_path
,
file_name
)
puts
"sudo -u root cp
#{
source
}
#{
dest
}
"
.
yellow
`sudo -u root cp
#{
source
}
#{
dest
}
`
puts
"sudo -u root chown git:git
#{
dest
}
"
.
yellow
`sudo -u root chown git:git
#{
dest
}
`
end
end
end
end
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