Re: [BUG] git status doesn't handle submodules properly on OSX
- From
Lars Hoss <lars@woeye.net>
- Date
- Oct 16, 2008, 11:23 UTC
- Message-ID
- <3520b7a9009f072cfc3aeb82ae205e6b.squirrel@webmail.highteq.net>
- In-Reply-To
- <524C98C8-C3A5-4501-932A-2F0ACDE2886A@simplicidade.org>
Update:
Ok, I compiled several git versions from the git repo with the following results:
v1.5.6.5 works v1.6.0.2 fails v1.6.0 fails v1.6.0-rc0 fails
Given a git repo with a submodule 1.5.6.5 works (no untracked files) but the same repo fails with 1.6.0-rc0 (lists submodule folders under untracked files).
So something between 1.5.6.5 and 1.6.0-rc0 broke it for me. A quick diff between the two version revealed a lot of changes. Thus tracking down the issue might not be easy for someone who is not involved in the code.
Maybe someone can give me a hint where to look? For example where does "git status" decide whether a given filesystem folder should be ignored with regard to .gitmodules?
Yours, Lars
Show 59 quoted lines
> > On Oct 15, 2008, at 3:51 PM, Lars Hoss wrote: > >>> Works for me on Leopard >>> >>> Vienna:a pieter$ git submodule add ~/projects/GitX/ gitx >>> Initialized empty Git repository in /Users/pieter/a/gitx/.git/ >>> Vienna:a pieter$ git st >>> # On branch master >>> # Changes to be committed: >>> # (use "git reset HEAD <file>..." to unstage) >>> # >>> # new file: .gitmodules >>> # new file: gitx >>> # >>> Vienna:a pieter$ git --version >>> git version 1.6.0.2.415.gf9137 >> >> My git version "1.6.0.2" says: >> >> # On branch master >> # Changes to be committed: >> # (use "git reset HEAD <file>..." to unstage) >> # >> # new file: .gitmodules >> # new file: lib >> # >> # Untracked files: >> # (use "git add <file>..." to include in what will be committed) >> # >> # lib/ >> git --version >> git version 1.6.0.2 >> >> Git was build from macports. > > hmms.. Really, I know about fink and Macports and all others, but I'm > using Mac OS X since version 10.1 (when compiling OSS software was > near impossible due to Apple decisions) and I've always had better > results with compiling my own than using any of those OSS repositories. > > I understand the appeal, it seems easier, but I would recommend that > you compile yourself the software packages you depend on. > > Regarding git, I saw a git-build.sh script floating around. If you > cannot find it, you might want to try my own recipe > (http://tinyurl.com/4ayze6 > ). I compile git master every day (cron) and thats the one I use on my > main machine. > > Best regards, > -- > Pedro Melo > Blog: http://www.simplicidade.org/notes/ > XMPP ID: melo@simplicidade.org > Use XMPP! > > >