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

git-archive and submodules

From
Whit Armstrong <armstrong.whit@gmail.com>
Date
Mar 29, 2008, 13:47 UTC
Message-ID
<8ec76080803290647h25e86f18k7a86bc4cb2cc3d38@mail.gmail.com>

Is there a way to ask git-archive to archive the submodules of the project as well?

I have a project that needs it's submoduels distributed with it.
Is anyone else using submodules in this way?
my project is: 	git://repo.or.cz/fts.git
It has a submodule: 	tslib at git://repo.or.cz/tslib.git

I create the archive by: git archive --format=tar --prefix=fts/ HEAD | gzip > ~/fts.tar.gz

and when I go into the tslib submodule directory after expanding the archive, it is empty.

-Whit
Next: Shawn O. Pearce
Message 1 of 4 in “git-archive and submodules”
  1. Whit ArmstrongMar 29, 2008
  2. Shawn O. PearceMar 29, 2008
  3. Whit ArmstrongMar 29, 2008
  4. CJ van den BergMar 29, 2008

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.