diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-28 10:28:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-29 08:50:08 +0000 |
commit | cf8425e247b707d0500f665842113254cfcc2a70 (patch) | |
tree | 7a9becd08a0312906761cceac234123969535c41 /bitbake/lib/bb/fetch2/git.py | |
parent | 3f947dffe734800fc15ee27f8b76d7c554249cf5 (diff) | |
download | poky-cf8425e247b707d0500f665842113254cfcc2a70.tar.gz |
bitbake: fetch/git: Add pack-refs command to mirror handling code
We've noticed issues on our infrastucture iterating over the many
tag/branch/head reference files that some git repositories may contain.
By issuing the pack-refs command, we move these all to a single file
which speeds up operations with the mirror repos in the downloads
directory in general.
(Bitbake rev: f8126aaf774186a6eaf0bd4067b89c074594886c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 5ef8cd69e2..d34ea1de29 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -363,6 +363,7 @@ class Git(FetchMethod): | |||
363 | progresshandler = GitProgressHandler(d) | 363 | progresshandler = GitProgressHandler(d) |
364 | runfetchcmd(fetch_cmd, d, log=progresshandler, workdir=ud.clonedir) | 364 | runfetchcmd(fetch_cmd, d, log=progresshandler, workdir=ud.clonedir) |
365 | runfetchcmd("%s prune-packed" % ud.basecmd, d, workdir=ud.clonedir) | 365 | runfetchcmd("%s prune-packed" % ud.basecmd, d, workdir=ud.clonedir) |
366 | runfetchcmd("%s pack-refs --all" % ud.basecmd, d, workdir=ud.clonedir) | ||
366 | runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d, workdir=ud.clonedir) | 367 | runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d, workdir=ud.clonedir) |
367 | try: | 368 | try: |
368 | os.unlink(ud.fullmirror) | 369 | os.unlink(ud.fullmirror) |