From: Andreas Schwab Date: Wed, 08 Oct 2025 18:51:59 GMT Subject: Re: [BUG] git clone from bundle with --all does not fetch all refs Message-ID: <87ldllw7jk.fsf@igel.home> In-Reply-To: On Okt 08 2025, Andrew Harmon wrote: > As an end user, I found this very surprising. I was expecting to call: > git clone > and have this behave just like: > git clone If you want that equivalency, then you need to create the bundle either directly from , 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 . > 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."