I'm trying to setup a git deploy setup, wherein I push my changes when ready to a git repo on a staging server, that then uses a post-recieve hook to deploy the code from the various branches to the appropriate web roots.
A problem I've encountered however is every time I run: git submodule update
I receive a password prompt, causing the deploy script to freeze up.
So far the things I've tried are:
One thing to note is when setting up the repo on my staging server, I wasn't able to just clone the repo from my working instance due to firewall restrictions, so I instead cloned a copy locally then moved that newly cloned version to the server, and I've been able to push to it just fine.
Looking for any advice or tips I can get.
Had the same issue. In my case it was caused by setting the submodule "url" to the https
URL instead of the git@
URL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With