Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1870)

Unified Diff: gclient_scm.py

Issue 2320573005: gclient: Prune dangling remote tracking refs when fetching with --force (Closed)
Patch Set: inline Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index 07ca6b8f571518b0f860468d24a5650a99c1d0eb..db4d122ccea81f1fd890a11e2561a92f1b4be093 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698