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

Re: Git shallow clone branch doesn't work with recursive submodules cloning

From
Arkady Shapkin <arkady.shapkin@gmail.com>
Date
Aug 15, 2016, 12:53 UTC
Message-ID
<CAB-zwL2P08YC=3Ube8mkZ=mB4xpW6TUnG2gEZKtvRU03eE6ALA@mail.gmail.com>
In-Reply-To
<20160815124725.t6bo5fv4lbbnqnfo@sigill.intra.peff.net>

So it will work only if github update their server configuration (boringssl submodule on github)?

2016-08-15 15:47 GMT+03:00 Jeff King <peff@peff.net>:
Show 20 quoted lines
> On Mon, Aug 15, 2016 at 03:29:14PM +0300, Arkady Shapkin wrote:
>
>> Thank you, after updating to "2.9.3.windows.1" options "--recursive
>> --depth 1" now works.
>>
>> But "--recursive --shallow-submodules" and "--recursive
>> --shallow-submodules --depth 1" still doesn't work.
>
> It does "work", but the server hosting your submodule may not be
> configured to allow you to access the reachable-but-non-tip sha1
> directly. So it's not a bug, but rather a configuration issue (and the
> "fix" in v2.9.1 is to be less aggressive about enabling
> shallow-submodules, since the default server configuration does not
> allow it to work well).
>
> More discussion is in:
>
>   http://public-inbox.org/git/OFE09D48F2.D1D14F49-ONC2257FD7.00280736-C2257FD7.0028245A@notes.na.collabserv.com/t/#u
>
> -Peff
-- 
WBR,
Arkady Shapkin aka Dragon
Previous: Jeff KingNext: Jeff King
Message 5 of 6 in “Git shallow clone branch doesn't work with recursive submodules cloning”
  1. Arkady ShapkinAug 15, 2016
  2. Jeff KingAug 15, 2016
  3. Arkady ShapkinAug 15, 2016
  4. Jeff KingAug 15, 2016
  5. Arkady ShapkinAug 15, 2016
  6. Jeff KingAug 15, 2016

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.