This error looks like this:
-sh: 12: Syntax error: "&" unexpected ssh -o ConnectTimeout=3 firstname.lastname@example.org set -e if [ ! -d /home/bots/apps/builds ] then mkdir -p /home/bots/apps/builds cd /home/bots/apps/builds git init &> /dev/null git config receive.denyCurrentBranch ignore else cd /home/bots/apps/builds git config receive.denyCurrentBranch ignore fi &> /dev/null$
This simple dummy error means that you have different shell on your build host.
I created a user “bot” on my DigitalOcean VPS and user’s shell was `sh` by default.
So I logged in to the build host and changed shell like `chsh /bin/bash`.
OR you can edit `/etc/passwd` file and change/append `/bin/bash` in the line where your user located.