# git confusing a submodule & subdirectory?

2 messages from 2009-03-16 to 2009-03-17. Participants: Juan Zanos, Jeff King.
Thread: https://gitlist.dev/t/18328

## Juan Zanos, 2009-03-16 18:39

Subject: git confusing a submodule & subdirectory?
Message-ID: <135FFBD1-83C2-4538-8311-A69A0D7D7016@talkhouse.com>
URL: https://gitlist.dev/e/135FFBD1-83C2-4538-8311-A69A0D7D7016%40talkhouse.com

```
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?

Best,
Juan

```

## Jeff King, 2009-03-17 08:32

Subject: Re: git confusing a submodule & subdirectory?
Message-ID: <20090317083225.GI18475@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20090317083225.GI18475%40coredump.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

```
