Fixed the detection of the paths to the commit hooks.
The symlinks to the post commit/post update scripts are absolute path symlinks, so a simple readlink is used. The is relative, so a bit of shell skill is used to resolve the path to the absolute path.
This commit is contained in:
@@ -18,9 +18,7 @@
|
||||
# www$ ln -s /home/www/indefero/scripts/svn-post-revprop-change post-revprop-change
|
||||
#
|
||||
|
||||
dir=$(dirname "$0")
|
||||
res=$(cd "$dir" && /bin/pwd || "$dir")
|
||||
SCRIPTDIR="$res/$(readlink $0)"
|
||||
SCRIPTDIR=$(dirname $(readlink $0))
|
||||
PHP_POST_REVPROP=$SCRIPTDIR/svnpostrevpropchange.php
|
||||
|
||||
echo php $PHP_POST_REVPROP "$1" "$2" "$3" "$4" "$5" | at now > /dev/null 2>&1
|
||||
|
Reference in New Issue
Block a user