I am using the git-deploy Ruby gem to deliver an application to the staging server. The deployment is performed with SSH keys.
In my after_push script I want to run a command with sudo, which subsequently asks for my password, since sudo rights are limited (can't run sudo without password).
Effectively my sudo command fails with:
sudo: no tty present and no askpass program specified
I've tried adding an askpass program and specifying it according to the git manual.
How can I open a TTY in the git-push process for interactive commands in my after_push script?
 
    