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

[BUG] can't switch branches with submodules

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Feb 9, 2013, 12:25 UTC
Message-ID
<CALkWK0=aifKVHnPZSfqE0rLn1aUGqC0nBULaLCe6UY2=6YGZ9g@mail.gmail.com>
Hi,

I have two branches: master and gh-pages. master has one submodule called foo that gh-pages doesn't. When I try to check out gh-pages from master:

    warning: unable to rmdir foo: Directory not empty

And the foo directory exists in my worktree. This is very annoying, and I want to fix it now. Where is this error coming from? How does the worktree get updated when I checkout?

Next: W. Trevor King
Message 1 of 2 in “[BUG] can't switch branches with submodules”
  1. Ramkumar RamachandraFeb 9, 2013
  2. W. Trevor KingFeb 9, 2013

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.