Maybe this script *needs* a tty? Maybe it doesn't run as user "git", e.g. wrong rights, wrong home directory? Try to put a "set -x" at the top of the script and restart it, then you'll see where it failed. Then, look into that program and find out why it failed. If in doubt, pepper it with debug printf or Ruby's equivalent.