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

Unified Diff: gclient_scm.py

Issue 18949002: Do not prompt for passwords (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 a299bc26427480fa5e3f205bc9b359b3eb7cc6c5..3a9e90ed6d55c5558464ddd0720f5eac12effab5 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -1030,6 +1030,10 @@ class GitWrapper(SCMWrapper):
kwargs['filter_fn'] = GitFilter(kwargs['nag_timer'] / 2,
kwargs.get('filter_fn'))
kwargs.setdefault('print_stdout', False)
+ # Don't prompt for passwords; just fail quickly and noisily.
Isaac (away) 2013/07/09 21:54:58 only if jobs > 1 ?
szager1 2013/07/09 22:23:09 Hmm... My concern here is that if we surface the p
+ env = kwargs.get('env') or kwargs.setdefault('env', os.environ.copy())
+ env.setdefault('GIT_ASKPASS', 'true')
+ env.setdefault('SSH_ASKPASS', 'true')
Dirk Pranke 2013/07/10 00:26:35 I think you should have a comment here explaining
else:
kwargs.setdefault('print_stdout', True)
stdout = kwargs.get('stdout', sys.stdout)
« 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