what could be the possible reason that my ruby script is not being called successfully?
note that when i manually execute the post-commit script like so:
/var/svn/eweds/hooks/post-commit /var/svn/eweds 151
works just fine, the way my ruby sript is called in the post-commit script is like this:
ruby /home/pmind/public_html/eweds/script/svn.rb "$REPOS" "$REV"
So i'm actually stumped why manually calling the hook script works but it doesn't when its actually executed when a user does an actual commit.
note that I know the hook-script is being called. my ruby sript is however not being executed successfully.
also note that the svn is started as root, the post开发者_开发百科-commit script is root too and the ruby script permissions is already set to 777.
Specify the full path to the ruby
interpreter instead of simply ruby
.
精彩评论