LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SVN commit error 200:0k (https://www.linuxquestions.org/questions/linux-newbie-8/svn-commit-error-200-0k-870630/)

linuxlover.chaitanya 03-23-2011 10:59 PM

SVN commit error 200:0k
 
Hello all,

I have installed SVN and running it fine. Update and commit and all are running without issues and running it under DAV from apache on Ubuntu server.
Now I need to run post-commit hook to auto update a testing staging server to test the changes. Without post-commit hook, everything works fine. The post-commit hook if run individually as a script manually runs fine without issues and it updates the said working copy. But if it is run by SVN, it somehow does not run and gives error to the client from where commit was done. This is the error I get for the post-commit script:
Code:


svn ci -m "change file for hooks"
Sending        hello.php
Transmitting file data .svn: Commit failed (details follow):
svn: MERGE of '/svn/newrepo': 200 OK (http://<live-ip-of-my-server>)


linuxlover.chaitanya 03-25-2011 11:11 AM

Nevermind. Did it. The environment variables are not set when running. So needed to check for UTF thing. And it took time because I was not running the script as root and hence missing on the errors.


All times are GMT -5. The time now is 07:25 AM.