Last Updated: February 25, 2016
· sugarskull

Modman / Git / Capistrano

Ran into an issue using Capistrano and Modman today.

Seems like if you clone using modman, the git submodule isn't properly added to your repository, making the mapping useless when it comes to deploy using Capistrano submodule support.

This is how you resolve it if you already added the files to the working tree. (I was adding turpentine and my git root is outside of my magento root)

Remove the cached reference previously added.

git rm --cached magento/.modman/magento-turpentine

Add the submodule - This will not re-import the submodule, but it will add the reference to .gitmodules

git submodule add -f magento/.modman/magento-turpentine

In any case, to avoid this issue you can run

modman clone

Then, before adding it to the working tree, run

git submodule add .modman/mymodule

More info

Issue in Modman