Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: gclient_scm.py

Issue 18851004: Moar doc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index 3a9e90ed6d55c5558464ddd0720f5eac12effab5..31296d02d13df72e058b2afff6dc9e6c261ee2d3 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -1031,6 +1031,13 @@ class GitWrapper(SCMWrapper):
kwargs.get('filter_fn'))
kwargs.setdefault('print_stdout', False)
# Don't prompt for passwords; just fail quickly and noisily.
+ # By default, git will use an interactive terminal prompt when a username/
+ # password is needed. That shouldn't happen in the chromium workflow,
+ # and if it does, then gclient may hide the prompt in the midst of a flood
+ # of terminal spew. The only indication that something has gone wrong
+ # will be when gclient hangs unresponsively. Instead, we disable the
+ # password prompt and simply allow git to fail noisily. The error
+ # message produced by git will be copied to gclient's output.
Dirk Pranke 2013/07/10 00:54:26 nit: this doesn't mention why we need to set SSH_A
env = kwargs.get('env') or kwargs.setdefault('env', os.environ.copy())
M-A Ruel 2013/07/10 01:02:50 In general I'd recommend: env = kwargs.setdefault(
env.setdefault('GIT_ASKPASS', 'true')
env.setdefault('SSH_ASKPASS', 'true')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698