How can I merge this submodule after having had the following warning?
warning: Failed to merge submodule sites/all/modules/contrib/panelizer
(not checked out)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That error message comes from
submodule.c, specifically themerge_submodule()method:And the
add_submodule_odb()method is checking for.gitpresence within said submodule.So, as Jefromi comments, you probably didn’t do a
git submodule updateas described in the Pro Git book.You should see the SO question “Git – easy way pull latest of all submodules” for more on how to get back the content of all your submodules.
With a recent git, you can pull and update in one go: