Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed subversion and have the following setup:

  • The repo is /home/svn/tester (apache:apache).
  • The site is /var/www/tester (tester:tester).

I've checked out the tester repo to /var/www/tester.

In /home/svn/tester/hooks/post-commit I have:

sudo -u tester /usr/bin/svn update /home/tester --username aaa --password bbb

What I am trying to do is keep the owner of the files in /home/svn/tester as apache and the owner of the files in /var/www/tester as tester.

I have added to /etc/sudoers:

tester ALL=(ALL) NOPASSWD: /usr/bin/svn

I've commented out requiretty in /etc/sudoers:

#Defaults    requiretty

Once I run the commit I receive the following message (in tortoisesvn):

Commit failed (details follow):
MERGE of '/svn/tester': 200 OK (https://[site name])

Am I going about this the correct way? If so how can I get passed this error?

share|improve this question
This question is more suited for – Nick Apr 12 '12 at 20:33
actually, it might even be suited for serverfault – Bora Apr 13 '12 at 15:44
Is it svn update /home/tester or svn update /var/www/tester in the post commit hook? Also shouldn't /var/www/tester belong to apache? – Cristian Ciupitu Oct 20 '13 at 21:01

You must log in to answer this question.

Browse other questions tagged .