Skip to content

Commit 7eb4567

Browse files
committed
Remove update hook logic
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
1 parent fc16836 commit 7eb4567

File tree

5 files changed

+3
-98
lines changed

5 files changed

+3
-98
lines changed

hooks/update

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/gitlab_update.rb

Lines changed: 0 additions & 58 deletions
This file was deleted.

spec/gitlab_projects_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@
295295
FileUtils.mkdir_p(File.join(tmp_repos_path, 'forked-to-namespace'))
296296
gl_projects_fork.exec.should be_true
297297
File.exists?(dest_repo).should be_true
298-
File.exists?(File.join(dest_repo, '/hooks/update')).should be_true
298+
File.exists?(File.join(dest_repo, '/hooks/pre-receive')).should be_true
299+
File.exists?(File.join(dest_repo, '/hooks/post-receive')).should be_true
299300
end
300301

301302
it "should not fork if a project of the same name already exists" do

spec/gitlab_update_spec.rb

Lines changed: 0 additions & 25 deletions
This file was deleted.

spec/names_helper_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'spec_helper'
2-
require 'gitlab_update'
2+
require 'names_helper'
33

44
describe NamesHelper do
55
include NamesHelper

0 commit comments

Comments
 (0)