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

Optionally include submodules in git archive - status?

From
AOAxel Obermeier <axel.obermeier@gmx.com>
Date
Jun 11, 2021, 07:21 UTC
Message-ID
<trinity-ccbae402-c6b8-4280-abe0-7fecf75af9f3-1623396089396@3c-app-gmx-bap17>
Dear git developers & community,
I'm trying to find out the status of including submodules in git archive
- I'm sure this has come up before, because it creates lots of pain,
especially in packaging [0].

Github in particular punts on including submodules in the automatically generated tarballs (which are therefore often broken, i.e. not including all necessary parts to build), and this is in part because the underlying git archive command does not provide that option.

I could not find a bug tracker for git (though I noted with interest from [1] that the git-scm website has one...), and could not easily find something on the ML [2].

It's creating enough friction for me that I feel tempted to implement it (e.g. with a switch to recurse one or all levels of submodules), even though I don't know the git codebase at all. In any case, before rushing ahead, I wanted to check first what the status of this topic is.

Best regards H.

[0] https://github.com/dear-github/dear-github/issues/214 [1] https://git-scm.com/community [2] https://public-inbox.org/git/?q=submodule+%22git+archive%22

Next: brian m. carlson
Message 1 of 2 in “Optionally include submodules in git archive - status?”
  1. Axel ObermeierJun 11, 2021
  2. brian m. carlsonJun 11, 2021

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.