Commit 2a3e9913 authored by bpastene's avatar bpastene Committed by Commit bot

gclient: Prune dangling remote tracking refs when fetching with --force

BUG=644722

Review-Url: https://codereview.chromium.org/2320573005
parent 082267a6
......@@ -1235,7 +1235,7 @@ class GitWrapper(SCMWrapper):
self._Run(config_cmd, options)
need_fetch = True
if fetch and need_fetch:
self._Fetch(options)
self._Fetch(options, prune=options.force)
def _Run(self, args, options, show_header=True, **kwargs):
# Disable 'unused options' warning | pylint: disable=W0613
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment