Chromium Code Reviews| Index: gclient_scm.py |
| diff --git a/gclient_scm.py b/gclient_scm.py |
| index 07ca6b8f571518b0f860468d24a5650a99c1d0eb..67b939965a41eee4e22107078b9cfb46b5fcd862 100644 |
| --- a/gclient_scm.py |
| +++ b/gclient_scm.py |
| @@ -1235,7 +1235,10 @@ class GitWrapper(SCMWrapper): |
| self._Run(config_cmd, options) |
| need_fetch = True |
| if fetch and need_fetch: |
| - self._Fetch(options) |
| + if options.force: |
| + self._Fetch(options, prune=True) |
|
iannucci
2016/09/07 21:46:13
self._Fetch(options, prune=options.force)
bpastene
2016/09/07 21:51:29
Done.
|
| + else: |
| + self._Fetch(options) |
| def _Run(self, args, options, show_header=True, **kwargs): |
| # Disable 'unused options' warning | pylint: disable=W0613 |