git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Add submodule specifying depth and branch at the same time won't work
@ 2015-10-12 19:48 Carlos Pita
  2015-10-12 21:36 ` [PATCH] submodule: Test a shallow branch Stefan Beller
  0 siblings, 1 reply; 3+ messages in thread
From: Carlos Pita @ 2015-10-12 19:48 UTC (permalink / raw)
  To: git

For example, I can do:

git clone --depth 1 --branch devel git@gitlab.com:memeplex/bash.git

But if I try:

git submodule add --depth 1 -b devel git@gitlab.com:memeplex/bash.git

I get:

fatal: Cannot update paths and switch to branch 'devel' at the same time.
Did you intend to checkout 'origin/devel' which can not be resolved as commit?
Unable to checkout submodule 'src/aur/bash'


I think the devel branch is left outside the update because depth is
just 1, but then the same could be said for the clone, which just
works. The request should be interpreted as depth 1 inside devel
branch.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-12 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 19:48 Add submodule specifying depth and branch at the same time won't work Carlos Pita
2015-10-12 21:36 ` [PATCH] submodule: Test a shallow branch Stefan Beller
2015-10-12 21:59   ` Fwd: " Stefan Beller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).