summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-06-11 16:47:20 +0200
committerJacob Vosmaer <jacob@gitlab.com>2018-06-11 16:47:20 +0200
commit3f68d65c743fa24c1537d2eb96f71429d214c505 (patch)
tree73dc59fbab206b2c5e79e6144b4d02c931da92a0
parentc6993052db24b45596440269f56630039025038e (diff)
downloadgitlab-ce-gitaly-disk-access-3.tar.gz
Remove more 'delete hooks' codegitaly-disk-access-3
-rw-r--r--spec/factories/projects.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index 16e025618a6..f6b05bac0e8 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -151,11 +151,6 @@ FactoryBot.define do
trait :empty_repo do
after(:create) do |project|
raise "Failed to create repository!" unless project.create_repository
-
- # We delete hooks so that gitlab-shell will not try to authenticate with
- # an API that isn't running
- project.gitlab_shell.rm_directory(project.repository_storage,
- File.join("#{project.disk_path}.git", 'hooks'))
end
end
@@ -180,13 +175,6 @@ FactoryBot.define do
trait :wiki_repo do
after(:create) do |project|
raise 'Failed to create wiki repository!' unless project.create_wiki
-
- # We delete hooks so that gitlab-shell will not try to authenticate with
- # an API that isn't running
- project.gitlab_shell.rm_directory(
- project.repository_storage,
- File.join("#{project.wiki.repository.disk_path}.git", "hooks")
- )
end
end