diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-06-08 14:35:52 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-06-08 14:35:52 +0200 |
commit | d962b6867de4a953ecbd2c12339e078a250698c1 (patch) | |
tree | 0240fe0471a43dfdff9bd07b7866d1470cd654b0 | |
parent | 0671df61ea046f7ca58b938d0f2b29448185a949 (diff) | |
download | gitlab-ce-d962b6867de4a953ecbd2c12339e078a250698c1.tar.gz |
Empty, not remove hooks
-rw-r--r-- | spec/support/helpers/test_env.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/helpers/test_env.rb b/spec/support/helpers/test_env.rb index adc429a8a7e..4a73145cc93 100644 --- a/spec/support/helpers/test_env.rb +++ b/spec/support/helpers/test_env.rb @@ -137,7 +137,9 @@ module TestEnv task: 'gitlab:shell:install') # gitlab-shell hooks don't work in our test environment because they try to make internal API calls - FileUtils.rm_rf(File.join(Gitlab.config.gitlab_shell.path, 'hooks')) + hooks_dir = File.join(Gitlab.config.gitlab_shell.path, 'hooks') + FileUtils.rm_rf(hooks_dir) + FileUtils.mkdir_p(hooks_dir) end def setup_gitaly |