| Index: gclient_scm.py
|
| diff --git a/gclient_scm.py b/gclient_scm.py
|
| index cf19e350d9627c98f20f03c875509ce8c1e65c0c..9baa6f48cabaacf99bc9183940cb1a580354aff4 100644
|
| --- a/gclient_scm.py
|
| +++ b/gclient_scm.py
|
| @@ -452,6 +452,11 @@ class GitWrapper(SCMWrapper):
|
| self._CheckClean(rev_str)
|
| # Switch over to the new upstream
|
| self._Run(['remote', 'set-url', self.remote, url], options)
|
| + if mirror:
|
| + with open(os.path.join(
|
| + self.checkout_path, '.git', 'objects', 'info', 'alternates'),
|
| + 'w') as fh:
|
| + fh.write(os.path.join(url, 'objects'))
|
| self._FetchAndReset(revision, file_list, options)
|
| return_early = True
|
|
|
|
|