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

Unified Diff: gclient_scm.py

Issue 239083007: branch heads fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 8 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 e0a90912e7488082dd324fed7e4d8b50fc8ec8e2..79a0adf8f6b760bb4abf6379787b381f9df46c34 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -732,9 +732,14 @@ class GitWrapper(SCMWrapper):
"""
if not self.cache_dir:
return url
- mirror_kwargs = { 'print_func': self.filter }
+ mirror_kwargs = {
+ 'print_func': self.filter,
+ 'refs': []
+ }
if url == CHROMIUM_SRC_URL or url + '.git' == CHROMIUM_SRC_URL:
- mirror_kwargs['refs'] = ['refs/tags/lkgr', 'refs/tags/lkcr']
+ mirror_kwargs['refs'].extend(['refs/tags/lkgr', 'refs/tags/lkcr'])
+ if hasattr(options, 'with_branch_heads') and options.with_branch_heads:
+ mirror_kwargs['refs'].append('refs/branch-heads/*')
mirror = git_cache.Mirror(url, **mirror_kwargs)
mirror.populate(verbose=options.verbose, bootstrap=True)
mirror.unlock()
« 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