From: Andreas Schwab <schwab@linux-m68k.org>
To: Andrew Harmon <aharmon@signalquest.com>
Cc: Junio C Hamano <gitster@pobox.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [BUG] git clone from bundle with --all does not fetch all refs
Date: Wed, 08 Oct 2025 20:51:59 +0200 [thread overview]
Message-ID: <87ldllw7jk.fsf@igel.home> (raw)
In-Reply-To: <BN0PR13MB5216EC49DD37699C766B8DD6BBE1A@BN0PR13MB5216.namprd13.prod.outlook.com> (Andrew Harmon's message of "Wed, 8 Oct 2025 18:17:14 +0000")
On Okt 08 2025, Andrew Harmon wrote:
> As an end user, I found this very surprising. I was expecting to call:
> git clone <repo-bundle>
> and have this behave just like:
> git clone <ssh-or-https-target>
If you want that equivalency, then you need to create the bundle either
directly from <ssh-or-https-target>, or a mirror clone thereof. By
using a regular clone as the source for the bundle you already have a
different type of repository than the one you see at the
<ssh-or-https-target>.
> echo ""
> echo "Clone the repo via SSH"
> git clone git@UBUBEAR:external_sources/matrice_sq.git matrice_sq
>
> echo ""
> echo "View available remote branches"
> (cd matrice_sq && git branch -r)
Compare the output of "git ls-remote matrice_sq" with the output of "git
ls-remote git@UBUBEAR:external_sources/matrice_sq.git"
to see the difference between the two repositories.
>
> echo ""
> echo "Pack the bundle for offline distribution"
> (cd matrice_sq && git bundle create ../matrice_sq.bundle --all)
The bundle picks up the refs from your local clone matice_sq, which is
different from the list of refs you'll see in the external source.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2025-10-08 18:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-07 21:11 [BUG] git clone from bundle with --all does not fetch all refs Andrew Harmon
2025-10-07 22:15 ` Junio C Hamano
2025-10-07 23:11 ` Andrew Harmon
2025-10-08 17:23 ` Junio C Hamano
2025-10-08 18:17 ` Andrew Harmon
2025-10-08 18:51 ` Andreas Schwab [this message]
2025-10-08 19:19 ` Andrew Harmon
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=87ldllw7jk.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=aharmon@signalquest.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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;
as well as URLs for NNTP newsgroup(s).