git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Supporting --depth when cloning from a bundle

From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Date
Feb 16, 2022, 22:07 UTC
Message-ID
<20220216220710.td4vp6mile5m6hjn@meerkat.local>
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
Next: Junio C Hamano
Message 1 of 4 in “Supporting --depth when cloning from a bundle”
  1. Konstantin RyabitsevFeb 16, 2022
  2. Junio C HamanoFeb 16, 2022
  3. Konstantin RyabitsevFeb 17, 2022
  4. Junio C HamanoFeb 17, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.