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

Unified Diff: git_cache.py

Issue 313933005: Add internal buckets for bootstrapping internal repos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Use @properties Created 6 years, 6 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: git_cache.py
diff --git a/git_cache.py b/git_cache.py
index 957ae9529c83454a78566fd54d031abf20392b66..0492a4657a65f548c9e21f88ccb67f3c9acabb6f 100755
--- a/git_cache.py
+++ b/git_cache.py
@@ -143,7 +143,6 @@ class Mirror(object):
gsutil_exe = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'third_party', 'gsutil', 'gsutil')
- bootstrap_bucket = 'chromium-git-cache'
def __init__(self, url, refs=None, print_func=None):
self.url = url
@@ -152,6 +151,13 @@ class Mirror(object):
self.mirror_path = os.path.join(self.GetCachePath(), self.basedir)
self.print = print_func or print
+ @property
+ def bootstrap_bucket(self):
+ if 'chrome-internal' in self.url:
+ return 'chrome-git-cache'
+ else:
+ return 'chromium-git-cache'
+
@classmethod
def FromPath(cls, path):
return cls(cls.CacheDirToUrl(path))
« 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