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

git submodule add --single-branch

From
ADAlter Depp <alter.depp@gmx.de>
Date
Feb 25, 2016, 17:54 UTC
Message-ID
<8e46e2f93895fb33421e7b09ccfe7de5@www.hilie.de>

I would like to do a shallow clone of a submodule like this: $ git submodule add --branch master --single-branch --depth 5 repo dir but it doesn't work. I think '--single-branch' is not yet implemented for submodules.

With the clone command it works: $ git clone --branch master --single-branch --depth 5 repo dir

Is it possible to do something like this with a submodule?
Stefan
Next: Stefan Beller
Message 1 of 2 in “git submodule add --single-branch”
  1. Alter DeppFeb 25, 2016
  2. Stefan BellerFeb 25, 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.