I have installed a hook on the staging servers, allowing me to push to staging very easy. However, the code includes a submodule and this one does not get copied over due to access rights.
This is the post-receive hook I am using:
#!/bin/sh GIT_WORK_TREE=/home/www/staging git checkout -f pwd cd /home/www/staging/ git --git-dir=/home/git/staging.git --work-tree=/home/www/staging submodule update --init --recursive After trying to git push staging I get the following:
remote: /home/git/staging.git remote: Cloning into 'MEW'... remote: Host key verification failed. remote: fatal: Could not read from remote repository. remote: remote: Please make sure you have the correct access rights remote: and the repository exists. remote: Clone of '[email protected]:demo/demo-mew.git' into submodule path 'MEW' failed Do I need to create a cert on the staging server and add this one to bitbucket?