Failed to find required executable git

I’m having this problem since some time while trying to deploy to production. Until now I couldn’t figure out the problem.

Trellis stops the deploy with this error “Failed to find required executable git”. I’m deploying to a shared hosting with ssh access, but no root. Git is installed on the Debian server. The location should also be fine to execute (tested with which git, results with “/usr/bin/git”). I also connected via SSH and tried git clone with success (git clone

SSH Forwarding should be configured right, but I also created a private key on the server and added to Bitbucket. (ssh -T returns like expected with “You can use git or hg to connect to Bitbucket. Shell access is disabled.”)

Any suggestions? I’ve got no idea what to try next.