summaryrefslogtreecommitdiff
path: root/spec/factories/projects.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-04 11:45:16 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-07 14:10:04 +0200
commit92482e01b45c337c0b9d761efd0297fc97ffcac0 (patch)
treedb5b98ede77dd50d0d0a67c49763036bdff5828e /spec/factories/projects.rb
parent965d0394d371f427ad0423bda2a6dc8867b31563 (diff)
downloadgitlab-ce-92482e01b45c337c0b9d761efd0297fc97ffcac0.tar.gz
Bump Gitaly to 0.98.0
Hooks were run for wikis, but given the internal API wasn't responding failures happended, as seen on: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18693
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r--spec/factories/projects.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index a6128903546..9ab57af1c60 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -193,6 +193,13 @@ 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