Reputation: 25699
In my project i'm using git submodules.
I installed Behat using composer [method #1 from official doc] from app root. All is working well.
But when now I do
git submodule initor
updatei receive this
No submodule mapping found in .gitmodules for path 'vendor/behat/gherkin'
In my app .gitmodules and /.git/config i've NOTHING speaking of gherkin.
What can I do ?
This problem is not blocking, but is due to behat because removing vendor folder the problem is no more here.
php composer install
, then git warn me no more, so the problem I think is in tsome file inside of vendor folder, but I cannot find whichi ALREADY read all of thread with title like "no submodule mapping" but noone can solve my problem - PLEASE DON'T MARK AS DUPLICATED
Upvotes: 0
Views: 584
Reputation: 2913
As there is nothing in .gitmodules, it means that you have not added the submodule using git submodule add command.
Do something similar to the following: git submodule add "external module path" "project directory"
After adding if you do git status, you should get .gitmodules configuration file which stores the mapping between project url and local directory.
Now if you read the contents of .gitmodules, it should list the mapping.
For more information please go through git submodules section in progit book (http://git-scm.com/book/en/Git-Tools-Submodules)
Upvotes: 1