From b1d17e24eb5027aa7057d330390cbb27e42d0b93 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Wed, 22 Dec 2010 14:10:10 -0800 Subject: [PATCH] Move git config till after we sync. This deals with the condition where on a clobber we don't actually re-config to use ssh:// until the second run (because git config is called before we first sync the code). Change-Id: Icf1a46aced633b570db9d280b10ae6866af04709 BUG=chromium-os:10545 TEST=Unit tests Review URL: http://codereview.chromium.org/6027006 --- bin/cbuildbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py index 90e965bb4f..ff3fb8a94c 100755 --- a/bin/cbuildbot.py +++ b/bin/cbuildbot.py @@ -74,10 +74,10 @@ def RepoSync(buildroot, retries=_DEFAULT_RETRIES): # The --trace option ensures that repo shows the output from git. This # is needed so that the buildbot can kill us if git is not making # progress. + RunCommand(['repo', '--trace', 'sync'], cwd=buildroot) RunCommand(['repo', 'forall', '-c', 'git', 'config', 'url.ssh://git@gitrw.chromium.org:9222.insteadof', 'http://git.chromium.org/git'], cwd=buildroot) - RunCommand(['repo', '--trace', 'sync'], cwd=buildroot) retries = 0 except: retries -= 1