I have an existing project that has been managed under git. I recently had to do a ground-up rebuild of the computer (OS X Snow Leopard), and returning to the project, git c
I'd like to point out one more cause of this error
If you are cloning a git repository that contains another git repository in it (not submodule), you will get this behaviour.
Hope it'll help somebody.