grok-bundle - Man Page

Create clone.bundle files for use with "repo"

Synopsis

grok-bundle [options] -c grokmirror.conf -o path

Description

Android's "repo" tool will check for the presence of clone.bundle files before performing a fresh git clone. This is done in order to offload most of the git traffic to a CDN and reduce the load on git servers themselves.

This command will generate clone.bundle files in a hierarchy expected by repo. You can then sync the output directory to a CDN service.

Options

-h,  --help

show this help message and exit

-v,  --verbose

Be verbose and tell us what you are doing (default: False)

-c CONFIG--config CONFIG

Location of the configuration file

-o OUTDIR--outdir OUTDIR

Location where to store bundle files

-g GITARGS--gitargs GITARGS

extra args to pass to git (default: -c core.compression=9)

-r REVLISTARGS--revlistargs REVLISTARGS

Rev-list args to use (default: --branches HEAD)

-s MAXSIZE--maxsize MAXSIZE

Maximum size of git repositories to bundle (in GiB) (default: 2)

-i,--include INCLUDE

List repositories to bundle (accepts shell globbing) (default: *)

Examples

grok-bundle -c grokmirror.conf -o /var/www/bundles -i /pub/scm/linux/kernel/git/torvalds/linux.git /pub/scm/linux/kernel/git/stable/linux.git /pub/scm/linux/kernel/git/next/linux-next.git

See Also

Support

Email tools@linux.kernel.org.

Author

mricon@kernel.org

License: GPLv3+

Info

2020-09-04 2.0.0