From: Cole <cole@opteqint.net>
To: git@vger.kernel.org
Subject: Git submodule add with branch and depth option
Date: Thu, 4 Sep 2014 17:21:29 +0200 [thread overview]
Message-ID: <CACsf_wy51oUaFOKHbg9QUQibkM045FYXY9HpYM84H5tvJcbPYg@mail.gmail.com> (raw)
Hi,
I am trying to add a submodule using the following command:
$ git submodule add -b gcc-4_9-branch --depth 1
https://github.com/gcc-mirror/gcc.git src
As you can see, I am trying to clone a single commit from the
'gcc-4_9-branch' branch, and avoid downloading the entire history of
that branch.
However, after downloading all the necessary files, it then errors out
with the following output:
colem@xvm14:~/repos/gcc-4.9 [0]
$ git submodule add -b gcc-4_9-branch --depth 1
https://github.com/gcc-mirror/gcc.git src
Cloning into 'src'...
remote: Counting objects: 90203, done.
remote: Compressing objects: 100% (71667/71667), done.
remote: Total 90203 (delta 27425), reused 62802 (delta 17053)
Receiving objects: 100% (90203/90203), 111.82 MiB | 467.00 KiB/s, done.
Resolving deltas: 100% (27425/27425), done.
Checking connectivity... done.
fatal: Cannot update paths and switch to branch 'gcc-4_9-branch' at
the same time.
Did you intend to checkout 'origin/gcc-4_9-branch' which can not be
resolved as commit?
Unable to checkout submodule 'src'
colem@xvm14:~/repos/gcc-4.9 [0]
$ git --version
git version 2.1.0
colem@xvm14:~/repos/gcc-4.9 [0]
Does anyone have any suggestions to try resolve the problem?
Any help would be appreciated.
Regards
/Cole
reply other threads:[~2014-09-04 15:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACsf_wy51oUaFOKHbg9QUQibkM045FYXY9HpYM84H5tvJcbPYg@mail.gmail.com \
--to=cole@opteqint.net \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).