Commit a54a90188b03730c998b7e5a91c85611dfe5e311
1 parent
41e53eb9
Exists in
master
and in
4 other branches
remove unnecessary task
Showing
1 changed file
with
0 additions
and
21 deletions
Show diff stats
lib/tasks/gitlab/write_hook.rake
@@ -1,21 +0,0 @@ | @@ -1,21 +0,0 @@ | ||
1 | -namespace :gitlab do | ||
2 | - namespace :gitolite do | ||
3 | - desc "GITLAB | Write GitLab hook for gitolite" | ||
4 | - task :write_hooks => :environment do | ||
5 | - gitolite_hooks_path = File.join(Gitlab.config.git_hooks_path, "common") | ||
6 | - gitlab_hooks_path = Rails.root.join("lib", "hooks") | ||
7 | - gitlab_hook_files = ['post-receive'] | ||
8 | - | ||
9 | - gitlab_hook_files.each do |file_name| | ||
10 | - source = File.join(gitlab_hooks_path, file_name) | ||
11 | - dest = File.join(gitolite_hooks_path, file_name) | ||
12 | - | ||
13 | - puts "sudo -u root cp #{source} #{dest}".yellow | ||
14 | - `sudo -u root cp #{source} #{dest}` | ||
15 | - | ||
16 | - puts "sudo -u root chown git:git #{dest}".yellow | ||
17 | - `sudo -u root chown git:git #{dest}` | ||
18 | - end | ||
19 | - end | ||
20 | - end | ||
21 | -end |