The branch, master on karma.git has been updated from e02dd3d1130c6c5a08bd255a0d97f8d26d27380a (commit) to 5f74dfca3e51d9529ba499017c887d076a9eb9b3 (commit)
http://git.php.net/?p=karma.git;a=log;h=5f74dfca3e51d9529ba499017c887d076a9eb9b3;hp=e02dd3d1130c6c5a08bd255a0d97f8d26d27380a Summary of changes: hooks/post-receive.mirror | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) -- Log ---------------------------------------- commit 5f74dfca3e51d9529ba499017c887d076a9eb9b3 Author: David Soria Parra <d...@php.net> Date: Tue Jan 24 13:15:27 2012 +0100 Calculate pathes based on the repodir diff --git a/hooks/post-receive.mirror b/hooks/post-receive.mirror index 450da6a..edc9a68 100755 --- a/hooks/post-receive.mirror +++ b/hooks/post-receive.mirror @@ -13,10 +13,7 @@ echo "Attempting to push to mirror" if $(echo $target | grep -q "REPO"); then -# if [ -z "$GL_REPO" ]; -# then - GL_REPO=$(pwd | perl -e '<> =~ /([^\/]+)\.git$/; print $1;'); -# fi + GL_REPO=$(pwd | sed s,/git/repositories/,, | sed s,/,-,g) # Support a REPO variable for wildcard mirrors target=$(echo $target | sed -e "s,REPO,$GL_REPO,g") fi Thank you for your contribution. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php