diff options
| author | Vinnie Okada <vokada@mrvinn.com> | 2014-10-22 21:08:19 -0500 |
|---|---|---|
| committer | Vinnie Okada <vokada@mrvinn.com> | 2014-10-22 21:08:19 -0500 |
| commit | 41518a467dcef61deca24ad2f6205c6fd5706e1b (patch) | |
| tree | b156d517ab5e27cc789078b23805465a5bc1739e /lib | |
| parent | 68b5ac7f185b9b30cd862eacf806db726d8ce6e4 (diff) | |
| download | gitlab-ce-41518a467dcef61deca24ad2f6205c6fd5706e1b.tar.gz | |
Remove :keep_repo option
Always delete repositories from the filesystem when deleting a project.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/api/projects.rb | 8 |
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 |
