From 6cd41b69166f9c46865e565a521d1f44f32e5924 Mon Sep 17 00:00:00 2001 From: "szager@chromium.org" Date: Mon, 21 Apr 2014 23:55:22 +0000 Subject: [PATCH] Show input prompt even on error. BUG= Review URL: https://codereview.chromium.org/246123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@265112 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_scm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gclient_scm.py b/gclient_scm.py index a1c26c90e3..89647ac0eb 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -799,9 +799,9 @@ class GitWrapper(SCMWrapper): 'an existing branch or use \'git checkout %s -b \' to\n' 'create a new branch for your work.') % (revision, self.remote)) - @staticmethod - def _AskForData(prompt, options): + def _AskForData(self, prompt, options): if options.jobs > 1: + self.Print(prompt) raise gclient_utils.Error("Background task requires input. Rerun " "gclient with --jobs=1 so that\n" "interaction is possible.")