redcoder
redcoder

Reputation: 2333

post commit failed on SVN tortoise

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

Answers (1)

Lazy Badger
Lazy Badger

Reputation: 97282

255 exit code in SVN hooks is (usually) "Permission problem" or "File not found"

You may be victim of both:

  • Hooks are executed in empty environment, thus - plain svn without full path to it may be (must be) problematic
  • Hooks executed under user, which runs used SVN-server and svnserver-user may have not rights for writing into /home/mmmm/public_html/mstardev

If 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

Related Questions