Skip to content
Snippets Groups Projects
Commit 8f17270f authored by Douwe Maan's avatar Douwe Maan
Browse files

Delete hooks from project with empty repository

Former-commit-id: e26b4f0c
parent 30434e11
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -39,6 +39,10 @@ FactoryGirl.define do
trait :empty_repo do
after(:create) do |project|
project.create_repository
# We delete hooks so that gitlab-shell will not try to authenticate with
# an API that isn't running
FileUtils.rm_r(File.join(project.repository_storage_path, "#{project.path_with_namespace}.git", 'hooks'))
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment