Configure whether to allow user to select preserve

In some cases, it could be desirable to prevent users from choosing the
"Preserve git repository" option when deleting a project. For example,
when the administrators have choose to archive a repository instead of
deleting it and the preserve option is selected, the repository will be
present twice on the file system.

Add a new configuration, enablePreserveOption, to control whether to
enable the preserve option on the UI and the ssh command.

In order to keep the current behaviour, the default value of this option
is set to true. If this configuration is set to be false, the deleted
git repository will not be preserved.

Change-Id: I2028c0dbe126a56d4b71f44742bd5fc734465631
6 files changed
tree: 22864b3ec91d30b91c57fdfc03c9624de865f405
  1. .settings/
  2. src/
  3. tools/
  4. .bazelrc
  5. .gitignore
  6. bazlets.bzl
  7. BUILD
  8. external_plugin_deps.bzl
  9. README.md
  10. WORKSPACE
README.md

Delete project plugin for Gerrit Code Review

A plugin which allows projects to be deleted from Gerrit via an SSH command, REST API or the Project settings screen.

Build Status