diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-08-31 10:03:12 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-08-31 10:03:12 +0300 |
commit | eacda4cc98933c2c9bfd4935b289eee79da516dd (patch) | |
tree | c3f42466af59edd6f6ff0da7b8334e75112221a2 /spec/support | |
parent | f7c8434c7100c3c87eb2a75cd5a128e520d8c110 (diff) | |
parent | a882026bdfc770ecfac70bfc88a409ec010f06c9 (diff) |
Merge branch '36743-existing-repo-master' into 'master'
[master] Prevent project creation (blank, import or fork) when repository already exists on disk
See merge request gitlab/gitlabhq!2169
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/javascript_fixtures_helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/javascript_fixtures_helpers.rb b/spec/support/javascript_fixtures_helpers.rb index aace4b3adee..923c8080e6c 100644 --- a/spec/support/javascript_fixtures_helpers.rb +++ b/spec/support/javascript_fixtures_helpers.rb @@ -31,6 +31,10 @@ module JavaScriptFixturesHelpers File.write(fixture_file_name, fixture) end + def remove_repository(project) + Gitlab::Shell.new.remove_repository(project.repository_storage_path, project.disk_path) + end + private # Private: Prepare a response object for use as a frontend fixture |