@Nikita240 Can you describe how you perform your deployment and which tools you use for that?
From my experience, tools like Envoy or Deployer, they usually delete .git folder, therefore you cannot do any other git related operation, once the application got deployed.
However there is always an option to hook into the process of deployment. So if you git clone your main branch/tag, try immediately initialize your git submodules.
I would add the hook after the 'Clone New Release`.
Please mind I have never used Envoyer myself, so I hope this video is still valid and beneficial to you.
Personally, I think the deployment tool should be flexible enough to accommodate your needs. You shouldn't be forced to change your preferred way of working because of the tool...especially when it's paid version like Envoyer.
If git submodules are not currently supported there, I would poke Taylor to fix it for you :)
Envoyer never clones a repo. It just downloads a zip version of the repo, so the git command will not work.
Just for some other people looking for a starting point. Here is a sample hook you can add after the "Clone New Release" to download the submodule.
// {{release}} is valid variable you can use https://docs.envoyer.io/1.0/projects/deployment-hooks.html#hook-variables
cd {{ release }}/nova-components/
curl -sLo {{filename}}.tar.gz {{url to zip}} // make sure to replace {{filename}} and {{url to zip}} with actual value
unzip {{filename}}.tar.gz
rm -rf {{filename}}.tar.gz