com karma: Let's print the actual errors: hooks/pre-receive
| From: | Johannes Schlüter | Date: | Sat, 25 Jan 2014 00:24:55 +0000 |
| Subject: | com karma: Let's print the actual errors: hooks/pre-receive | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75781@lists.php.net to get a copy of this message | ||
Commit: dc11ab66b2bb79d64490b364f48e228466899e6b
Author: Johannes Schlüter <johannes@schlueters.de> Sat, 25 Jan 2014 01:24:55 +0100
Parents: 3f147364cb7d60fed9a00c2d87bfc8cb1a43e478
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=dc11ab66b2bb79d64490b364f48e228466899e6b
Log:
Let's print the actual errors
Changed paths:
M hooks/pre-receive
Diff:
diff --git a/hooks/pre-receive b/hooks/pre-receive
index d856987..7b9865b 100755
--- a/hooks/pre-receive
+++ b/hooks/pre-receive
@@ -140,11 +140,11 @@ if (isset($closedBranches[$repo_name])) {
if (count($closed)) {
$rms = $closedBranches[$repo_name];
- deny("You can not push to closed branches. ".array_map(
+ deny("You can not push to closed branches. ". PHP_EOL . implode(PHP_EOL,
array_map(
function ($branch) use ($rms) {
- return "Please contact " . implode(', ', $rms[$branch]) .
" for changes to " . $branch . PHP_EOL;
+ return "Please contact " . implode(', ', $rms[$branch]) .
" for changes to ${branch}.";
},
- $closed));
+ $closed)));
}
}