mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
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
This commit is contained in:
parent
5a46bfb321
commit
b1d17e24eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user