From 4a5ecbe6152b48637745f3b148f288cade24f1f7 Mon Sep 17 00:00:00 2001 From: sergiyb Date: Mon, 20 Jun 2016 09:46:00 -0700 Subject: [PATCH] Default to y(es) when asking user about archiving committed branches R=tandrii@chromium.org Review-Url: https://codereview.chromium.org/2074723002 --- git_cl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 52c091f36..95a141b02 100755 --- a/git_cl.py +++ b/git_cl.py @@ -3212,7 +3212,8 @@ def CMDarchive(parser, args): return 1 if not options.force: - if ask_for_data('\nProceed with deletion (Y/N)? ').lower() != 'y': + answer = ask_for_data('\nProceed with deletion (Y/n)? ').lower() + if answer not in ('y', ''): print('Aborted.') return 1