From 92cbf54a2be3e4bfbd60a35357031f859e506cf4 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Oct 06 2017 07:40:50 +0000 Subject: Warn if the user is about to just recompile Signed-off-by: Patrick Uiterwijk --- diff --git a/pagure/cli/admin.py b/pagure/cli/admin.py index e28576b..f6f5f2c 100644 --- a/pagure/cli/admin.py +++ b/pagure/cli/admin.py @@ -198,6 +198,13 @@ def do_generate_acl(args): title = 'all' project = -1 + if not args.all_ and not args.project: + print( + 'Please note that you have not selected a project or --all. ' + 'Do you want to recompile the existing config file?') + if not _ask_confirmation(): + return + helper = pagure.lib.git_auth.get_git_auth_helper( APP.config['GITOLITE_BACKEND']) _log.debug('Got helper: %s', helper)