diff --git a/doc/configuration.rst b/doc/configuration.rst index da21c94..8010ab9 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -578,6 +578,17 @@ Defaults to: ``False``. This does not disable emails to the email address set in ``EMAIL_ERROR``. +ALLOW_DELETE_BRANCH +~~~~~~~~~~~~~~~~~~~ + +This configuration keys enables or disables allowing users to delete git +branches from the user interface. In sensible pagure instance you may +want to turn this off and with a customized gitolite configuration you can +prevent users from deleting branches in their git repositories. + +Defaults to: ``True``. + + OLD_VIEW_COMMIT_ENABLED ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/pagure/default_config.py b/pagure/default_config.py index 27a8eee..f69e788 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -65,6 +65,9 @@ ENABLE_GROUP_MNGT = True # Enables / Disables private projects PRIVATE_PROJECTS = False +# Enable / Disable deleting branches in the UI +ALLOW_DELETE_BRANCH = True + # Enables / Disables showing all the projects by default on the front page SHOW_PROJECTS_INDEX = ['repos', 'myrepos', 'myforks'] diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 8252a25..7ac00ba 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -129,7 +129,7 @@ git push -u origin master