com karma: Fix commit notice: hooks/commit-bugs.php

From: Date: Mon, 16 Dec 2013 20:07:25 +0000
Subject: com karma: Fix commit notice: hooks/commit-bugs.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74464@lists.php.net to get a copy of this message
Commit: eb861394ff5c8221882a09bccb6b5c918fb1b71c Author: Rasmus Lerdorf <rasmus@php.net> Mon, 16 Dec 2013 15:07:25 -0500 Parents: 5092625fc2c4bfb638ea99b5edf58ad47bf15c00 Branches: master Link: http://git.php.net/?p=karma.git;a=commitdiff;h=eb861394ff5c8221882a09bccb6b5c918fb1b71c Log: Fix commit notice Changed paths: M hooks/commit-bugs.php Diff: diff --git a/hooks/commit-bugs.php b/hooks/commit-bugs.php index b400006..1d3d471 100644 --- a/hooks/commit-bugs.php +++ b/hooks/commit-bugs.php @@ -18,7 +18,6 @@ $bug_rpc_url = 'https://bugs.php.net/rpc.php'; // ----------------------------------------------------------------------------------------------------------------------------- // Get the list of mentioned bugs from the commit log -file_put_contents("/var/tmp/commit_info.log",json_encode($commit_info)."\n",FILE_APPEND); if (preg_match_all($bug_pattern, $commit_info['log_message'], $matched_bugs, PREG_SET_ORDER) < 1) { // If no bugs matched, we don't have to do anything. return; @@ -26,6 +25,7 @@ if (preg_match_all($bug_pattern, $commit_info['log_message'], $matched_bugs, PRE // ----------------------------------------------------------------------------------------------------------------------------- // Pick the default bug project out the of the path in the first changed dir +/* switch (strtolower(substr($commit_info['dirs_changed'][0], 0, 4))) { case 'pear': $bug_project_default = 'pear'; @@ -37,6 +37,8 @@ switch (strtolower(substr($commit_info['dirs_changed'][0], 0, 4))) { $bug_project_default = ''; break; } +*/ +$bug_project_default = ''; // ----------------------------------------------------------------------------------------------------------------------------- // Process the matches

« previous php.cvs (#74464) next »