[git] karma.git branch master updated. 5f74dfc

From: Date: Tue, 24 Jan 2012 12:22:08 +0000
Subject: [git] karma.git branch master updated. 5f74dfc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-67520@lists.php.net to get a copy of this message
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 <dsp@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.

« previous php.cvs (#67520) next »