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:
Jeremy Stanley 2015-06-25 15:54:11 +00:00
parent b32c81a56c
commit a1f1ce370d
1 changed files with 1 additions and 1 deletions

View File

@ -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)