git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Supporting --depth when cloning from a bundle
@ 2022-02-16 22:07 Konstantin Ryabitsev
  2022-02-16 22:37 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Konstantin Ryabitsev @ 2022-02-16 22:07 UTC (permalink / raw)
  To: git

Hello, all:

It would be pretty handy if it was possible to do shallow clones from a bundle
file. For example, this would be nice for CI environments that first download
a clone.bundle file from a locally cached location, clone from it, and then
fetch any remaining objects from remote.

E.g., in my mind this outta work:

$ wget https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/clone.bundle
$ git clone --depth 1 clone.bundle linux -b master

Right now, this operation succeeds as-is without any errors, but the resulting
git repository isn't actually shallow.

Oh, it would be even awesomer if the bundle files could be used directly with
--reference, e.g.:

$ git clone --reference clone.bundle --dissociate \
  https://git.kernel.org/.../torvalds/linux.git linux

Any reason that can't work?

-K

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-17 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-16 22:07 Supporting --depth when cloning from a bundle Konstantin Ryabitsev
2022-02-16 22:37 ` Junio C Hamano
2022-02-17 14:19   ` Konstantin Ryabitsev
2022-02-17 21:05     ` Junio C Hamano

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).