threads / discuss / 15887

Git 1.6.0.2, Submodules and MacOSX Leopard

Subject: Git 1.6.0.2, Submodules and MacOSX Leopard

## tl;dr

One message between Oct 14, 2008 and Oct 14, 2008.

replies: 0people: 1as markdown or json

Lars Hoss· Oct 14, 2008, 06:53 UTC · lore
Greetings everyone!

Last night I played around with submodules on MacOSX Leopard using Git 1.6.0.2. And it seems there is a bug.

If I add a submodule like this:
git submodule add /Users/lars/tmp/git_test/foo_lib/ lib
It says:

Initialized empty Git repository in /Users/lars/tmp/git_test/ sample_app/lib/.git/

And I can see the lib folder. So far so good. But when I do a git status it 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/

So why is lib listed under untracked files? I did a quick test on my Linux server and there it worked as expected. Which means that lib wasn't listed under untracked files. Then again I use an older version of git on my Linux box (1.5.x).

Yours, Lars

← back to recent threads