git submodule add --single-branch
- From
- Alter 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