Cloudways Git Deployment Authentication error

When trying to authenticate my git repo on Cloudways today, I was getting this really unhelpful error message:

Unfortunately, operation failed due to unexpected error.

Annoying.

Easy to fix fortunately – remove the “.git” from the end of the repo URL and voila.