From: Carlos Pita <carlosjosepita@gmail.com>
To: git@vger.kernel.org
Subject: Add submodule specifying depth and branch at the same time won't work
Date: Mon, 12 Oct 2015 16:48:09 -0300 [thread overview]
Message-ID: <CAELgYhcmzDEVRH9neGwZeqVBduL-nb=d+XoSMwRGKpmLUeX83g@mail.gmail.com> (raw)
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.
next reply other threads:[~2015-10-12 19:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 19:48 Carlos Pita [this message]
2015-10-12 21:36 ` [PATCH] submodule: Test a shallow branch Stefan Beller
2015-10-12 21:59 ` Fwd: " Stefan Beller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAELgYhcmzDEVRH9neGwZeqVBduL-nb=d+XoSMwRGKpmLUeX83g@mail.gmail.com' \
--to=carlosjosepita@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).