In an effort to debug a problem in a third party library, I copied their source into my own git repo. I reproduced the problem immediately so wanted to commit to record a starting point. When I attempted to commit, none of the files I had copied were showing up in my working tree, so I couldn't stage them.
I tried explicitly staging one of the files in the copied source:
git add README
fatal: Path 'Src/Foo/README' is in submodule 'Src/Foo/FooBar'
So it seems git thinks it's a submodule, even though I never told it that it was. I tried deleting the .git directory in the root of the third party source, but that didn't help. Then I tried following these instructions, but it tells me I have no submodules:
git submodule deinit .
No submodule mapping found in .gitmodules for path 'Src/Foo/FooBar'
Any ideas?