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

Re: removed submodules shown as untracked when switching branches

From
Stefan Beller <sbeller@google.com>
Date
Feb 22, 2018, 23:53 UTC
Message-ID
<CAGZ79kYS_yJs2uFqLDwCgq4W0HrnMxZcCx8-dTXYf3hpPZYWFg@mail.gmail.com>
In-Reply-To
<6add3709b4eb469bb7c8d6319637b53a@USEPRDEX2.corp.kns.com>
On Thu, Feb 22, 2018 at 12:26 PM, Mike Friedrich <mfriedrich@kns.com> wrote:
Show 5 quoted lines
>     git submodule add ../submodule sub
>     git add sub
>     git commit -m "submodule added"
>
>     git checkout master

The original behavior of checkout is to ignore submodules, hence it will be left alone. Can you retry this recipe with --recurse-submodules given to checkout. (Or rather run "git config submodule.recurse true" once)

Thanks, Stefan

Previous: Mike FriedrichNext: Mike Friedrich
Message 2 of 3 in “removed submodules shown as untracked when switching branches”
  1. Mike FriedrichFeb 22, 2018
  2. Stefan BellerFeb 22, 2018
  3. Mike FriedrichFeb 23, 2018

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.