To debug the problem in a third-party library, I copied their source code into my own git repository. I immediately reproduced the problem, so I wanted to record the starting point. When I tried to commit, none of the files that I copied appeared in my working tree, so I could not generate them.
I tried to explicitly place 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 that git thinks this is a submodule, although I never said that it was. I tried to remove the .git directory in the root directory of a third-party source, but that did not help. Then I tried to follow these instructions , but he tells me that I do not have submodules:
git submodule deinit .
No submodule mapping found in .gitmodules for path 'Src/Foo/FooBar'
Any ideas?
source
share