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

Re: git confusing a submodule & subdirectory?

From
Jeff King <peff@peff.net>
Date
Mar 17, 2009, 08:32 UTC
Message-ID
<20090317083225.GI18475@coredump.intra.peff.net>
In-Reply-To
<135FFBD1-83C2-4538-8311-A69A0D7D7016@talkhouse.com>
On Mon, Mar 16, 2009 at 02:39:11PM -0400, Juan Zanos wrote:
> Is it possible for git to confuse a submodule with a subdirectory?  When I 
> modify my submodule git seems to think the directory has changed.   A 
> commit isn't going to add all that content to the containing repository.  
> Is it?

It's possible that git is confusing them. There was a bug where git-status with some configurations would show submodules as untracked files. It was fixed by 98fa473 (refactor handling of "other" files in ls-files and status, 2008-10-16), which is in v1.6.0.4. Depending on your git version, you may be seeing that bug.

Otherwise, it's hard to say without more information. Can you show us what commands you're running, what output you're seeing, and how it differs from what you expect?

-Peff
Previous: Juan Zanos
Message 2 of 2 in “git confusing a submodule & subdirectory?”
  1. Juan ZanosMar 16, 2009
  2. Jeff KingMar 17, 2009

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.