Indefero

Indefero Commit Details


Date:2011-01-09 04:02:27 (13 years 11 months ago)
Author:Loïc d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:fa974eb8dd225205d9faa1f39ab5db83012de2f2
Parents: c67e61cbaa4b6adc1f12d3f3d31e988a286a0004
Message: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.
Changes:

File differences

scripts/git-post-update
1717
1818
1919
20
21
22
20
2321
24
2522
2623
2724
# git$ ln -s /home/www/indefero/scripts/git-post-update post-update
#
dir=$(dirname "$0")
res=$(cd "$dir" && /bin/pwd || "$dir")
SCRIPTDIR="$res/$(readlink $0)"
SCRIPTDIR=$(dirname $(readlink $0))
FULL_GIT_DIR=$(cd "$GIT_DIR" && /bin/pwd || "$GIT_DIR")
PHP_POST_UPDATE=$SCRIPTDIR/gitpostupdate.php
echo php $PHP_POST_UPDATE $FULL_GIT_DIR | at now > /dev/null 2>&1
scripts/svn-post-commit
1818
1919
2020
21
22
23
21
2422
2523
2624
# www$ ln -s /home/www/indefero/scripts/svn-post-commit post-commit
#
dir=$(dirname "$0")
res=$(cd "$dir" && /bin/pwd || "$dir")
SCRIPTDIR="$res/$(readlink $0)"
SCRIPTDIR=$(dirname $(readlink $0))
PHP_POST_COMMIT=$SCRIPTDIR/svnpostcommit.php
echo php $PHP_POST_COMMIT "$1" "$2" | at now > /dev/null 2>&1
scripts/svn-post-revprop-change
1818
1919
2020
21
22
23
21
2422
2523
2624
# 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

Archive Download the corresponding diff file

Page rendered in 0.07867s using 13 queries.