This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 18de8fb2a16ae8ac2b0f3e91ec0a80ea82175f37 (commit)
from f4be58c1f9e456b87a395b17149ebb87baa8459d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=18de8fb2a16ae8ac2b0f3e91ec0a80ea82175f37
commit 18de8fb2a16ae8ac2b0f3e91ec0a80ea82175f37
Author: Franck Villaume <[email protected]>
Date: Mon Jul 31 15:33:29 2017 +0000
scmhook: fix CVS hook availability
diff --git a/src/plugins/scmhook/common/scmhookPlugin.class.php
b/src/plugins/scmhook/common/scmhookPlugin.class.php
index e746db2..f7fe261 100644
--- a/src/plugins/scmhook/common/scmhookPlugin.class.php
+++ b/src/plugins/scmhook/common/scmhookPlugin.class.php
@@ -479,7 +479,7 @@ project independently.");
}
}
- function displayScmCVSHook($hooksAvailable, $statusDeploy,
$hooksEnabled) {
+ function displayScmCVSHook($hooksAvailable, $hooksEnabled) {
global $HTML;
$hooksPostCommit = array();
foreach ($hooksAvailable as $hook) {
@@ -500,7 +500,6 @@ project independently.");
$classth = array('unsortable', '', '');
echo $HTML->listTableTop($tabletop, false,
'sortable_scmhook_postcommit', 'sortable', $classth);
foreach ($hooksPostCommit as $hookPostCommit) {
- $isdisabled = 0;
if (! empty($hookPostCommit->onlyGlobalAdmin)
&& ! Permission::isGlobalAdmin()) {
echo '<tr style="display: none;" ><td>';
} else {
@@ -511,12 +510,7 @@ project independently.");
if (in_array($hookPostCommit->getClassname(),
$hooksEnabled))
echo ' checked="checked"';
- if ($statusDeploy) {
- $isdisabled = 1;
- echo ' disabled="disabled"';
- }
-
- if (!$isdisabled &&
!$hookPostCommit->isAvailable())
+ if (!$hookPostCommit->isAvailable())
echo ' disabled="disabled"';
echo ' />';
-----------------------------------------------------------------------
Summary of changes:
src/plugins/scmhook/common/scmhookPlugin.class.php | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits