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

Re: git-archive ignores submodules

From
Fredrik Gustafsson <iveqy@iveqy.com>
Date
Apr 16, 2015, 17:56 UTC
Message-ID
<20150416175623.GJ21868@paksenarrion.iveqy.com>
In-Reply-To
<CAL1ZDKZs++NkLoHZ_w_YebQuZYG3rgAiH5SsaQfTmb9MPHjR3w@mail.gmail.com>
On Thu, Apr 16, 2015 at 06:35:38PM +0100, Pedro Rodrigues wrote:
> I've been using git-archive as my main way of deploying to production
> servers, but today I've come across a git repo with submodules and
> found out that git archive has no option to include submodules on the
> output archive.

As far as I know this is an known limitation that's just waiting for someone to solve. Thanks for bringing attention to it.

> This simply makes git-archive unusable on this scenario.

Not completely. There's a simple workaround. Combine git submodule foreach with git archive and make an archive for each submodule.

Not as simple as if git archive --recurse-submodule would have been implementet, but hopefully it can make things work for you at the moment.

-- 
Fredrik Gustafsson

phone: +46 733-608274
e-mail: iveqy@iveqy.com
website: http://www.iveqy.com
Previous: Pedro RodriguesNext: Pedro Rodrigues
Message 2 of 7 in “git-archive ignores submodules”
  1. Pedro RodriguesApr 16, 2015
  2. Fredrik GustafssonApr 16, 2015
  3. Pedro RodriguesApr 16, 2015
  4. Jens LehmannApr 16, 2015
  5. Pedro RodriguesApr 16, 2015
  6. Chris PackhamApr 20, 2015
  7. Kevin DaudtApr 19, 2015

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.