Reputation: 2333
I get a SVN post commit failed: Error msg is :
post-commit hook failed (exit code 255) with no output.
I tried few different scenerios: 1) Login putty as root and run the cmd in post-commit manually, able to execute the cmd successfully. 2) Login using user xxxx and run the same cmd, the cmd run failed.
So, i thought is the permission issue. but my question is that, whenever we SVN commit using SVN tortoise, are we committing as a xxxx user ? or as a root?
Note: I had included the user xxxx in the conf/passwd.
=============
My cmd in post-commit is :
#!/bin/sh
svn checkout svn://mmmm.my/mstardev /home/mmmm/public_html/mstardev
Upvotes: 2
Views: 1011
Reputation: 97282
255 exit code in SVN hooks is (usually) "Permission problem" or "File not found"
You may be victim of both:
svn
without full path to it may be (must be) problematicIf you'll redirect stdout of checkout to stderr (/usr/bin/svn co --username ... --password ... 1>&2
), you'll see results of svn co
attempt
Upvotes: 2