From: "Knop, Ryszard" <ryszard.knop@intel.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Clones with fetch.bundleURI slower than standard, full clone?
Date: Tue, 28 Jul 2026 23:42:03 +0000 [thread overview]
Message-ID: <008c6f4742d8e20124ed21d191178ce6db29aaa5.camel@intel.com> (raw)
Hey all,
I'm working on a Linux kernel-related CI system where we need to
perform full clones of the kernel repo in most jobs. Because of some
jobs in the pipeline, it usually cannot be a shallow clone :( Since the
kernel repo is large and slow to clone, and I don't want to put undue
stress on the remote host, I used git bundles, where CI clones the repo
over a weekend, packages that as a bundle, then in jobs it gets used
like this (weird, but works for <REF> being a branch, tag or a specific
commit hash):
git init
git remote add origin <REPO-URL>
git config set fetch.bundleURI <BUNDLE-URL>
git fetch origin <REF>
git reset --hard FETCH_HEAD
Cloning a repo this way takes 4-5mins. Unpacking a bundle appears to be
super slow. Not even faster than just running a full, normal clone from
the remote server, actually (~3-4mins for a single branch).
On one of the build VMs, with Git 2.53 (stock Ubuntu 26.04), GIT_TRACE
suggests most of the time is spent in some variation of `/usr/lib/git-
core/git index-pack --stdin -v --fix-thin '--keep=fetch-pack 39430 on
build-server' --check-self-contained-and-connected`, and indeed that
process burns 100% of its single thread for most of that time.
Is it expected that doing it this way is so slow? The alternative is to
just package and work with the whole bare repo, but bundles appear to
be an elegant way of dealing with exactly this scenario.
Thanks, Ryszard
next reply other threads:[~2026-07-28 23:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 23:42 Knop, Ryszard [this message]
2026-07-29 0:14 ` Clones with fetch.bundleURI slower than standard, full clone? brian m. carlson
2026-07-29 0:41 ` Knop, Ryszard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=008c6f4742d8e20124ed21d191178ce6db29aaa5.camel@intel.com \
--to=ryszard.knop@intel.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox