Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2014-10-23 06:08:19 +0400
committerVinnie Okada <vokada@mrvinn.com>2014-10-23 06:08:19 +0400
commit41518a467dcef61deca24ad2f6205c6fd5706e1b (patch)
treeb156d517ab5e27cc789078b23805465a5bc1739e /lib/api/projects.rb
parent68b5ac7f185b9b30cd862eacf806db726d8ce6e4 (diff)
Remove :keep_repo option
Always delete repositories from the filesystem when deleting a project.
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index e70548d1e85..7fcf97d1ad6 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -174,17 +174,11 @@ module API
#
# Parameters:
# id (required) - The ID of a project
- # keep_repo (optional) - If true, then delete the project from the
- # database but keep the repo, wiki, and satellite on disk.
# Example Request:
# DELETE /projects/:id
delete ":id" do
authorize! :remove_project, user_project
- ::Projects::DestroyService.new(
- user_project,
- current_user,
- keep_repo: params[:keep_repo]
- ).execute
+ ::Projects::DestroyService.new(user_project, current_user, {}).execute
end
# Mark this project as forked from another