com karma: Add dsp's multi-STDIN fix: hooks/post-receive

From: Date: Wed, 21 Mar 2012 14:22:34 +0000
Subject: com karma: Add dsp's multi-STDIN fix: hooks/post-receive
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-68115@lists.php.net to get a copy of this message
Commit: 89727c1b8c23217fafd72f06664648f350b0e525 Author: Florian Anderiasch <fa@php.net> Wed, 21 Mar 2012 15:22:34 +0100 Parents: ce38e2cad55e0530306df767261624505f9bf448 Branches: master Link: http://git.php.net/?p=karma.git;a=commitdiff;h=89727c1b8c23217fafd72f06664648f350b0e525 Log: Add dsp's multi-STDIN fix Changed paths: M hooks/post-receive Diff: 89727c1b8c23217fafd72f06664648f350b0e525 diff --git a/hooks/post-receive b/hooks/post-receive index 2016acb..74fce6b 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -1,4 +1,5 @@ #!/bin/sh -[ -f 'hooks/post-receive.mail' ] && hooks/post-receive.mail -[ -f 'hooks/post-receive.bugsweb' ] && hooks/post-receive.bugsweb +in=$(cat) +[ -f 'hooks/post-receive.mail' ] && (echo $in | hooks/post-receive.mail ) +[ -f 'hooks/post-receive.bugsweb' ] && (echo $in | hooks/post-receive.bugsweb ) [ -f 'hooks/post-receive..mirror' ] && hooks/post-receive.mirror

« previous php.cvs (#68115) next »