I have one repository and one working copy of it.
In the post-commit hook of repository I have written a command to execute one file which run the command of SVN update.
My repository is in the /var/www/svnrepos/help/
My working copy is in /var/www/autopostcommit/help/
Post-commit file is in the /var/www/svnrepos/help/hooks/
In the post-commit I have written following command
sudo /usr/local/bin/svn-post-commit-update 1>&2
In the svn-post-commit-update
file which is in /usr/local/bin I have written following command.
cd /var/www/autopostcommit/help/
svn update --non-interactive --trust-server-cert \
--username satish@108.166.92.199 --password mypassword
I have also tried other version of command for the update like without password and all.
SVN commit gives me following error
Error: sudo: no tty present and no askpass program specified
How can I get past this error?