Fetch all heads and tags when caching source repos
Passing a source-repositories ref of "*" signals fetching all heads and tags rather than just a specific refname. This is desirable for the warm cache on our job workers, since jobs may run against arbitrary branches (or possibly even tags). The point is to have a reasonably complete mirror of each repo, rather than a fairly minimal clone. Change-Id: I624ed1e259e007d4246afb45c3a0560598bfbe3f Depends-On: I4562c9689a8d235ebe09b2f7178aa5890dbc85f1
This commit is contained in:
parent
b32c81a56c
commit
a1f1ce370d
|
@ -46,7 +46,7 @@ def main():
|
|||
location=os.path.join('/opt/build_git', project),
|
||||
url=os.environ.get('CONFIG_SOURCE',
|
||||
'%s/%s.git' % (GIT_BASE, project)),
|
||||
ref=os.environ.get('CONFIG_REF', 'master'))
|
||||
ref=os.environ.get('CONFIG_REF', '*'))
|
||||
projects_list.write(
|
||||
"%(name)s git %(location)s %(url)s %(ref)s\n" % args)
|
||||
|
||||
|
|
Loading…
Reference in New Issue