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  280e688b8d9660e67aec26e944bed32f4e9173a7 (commit)
      from  2c06efb1bd044ab82a68f74bed434b4679e7b3ab (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=280e688b8d9660e67aec26e944bed32f4e9173a7

commit 280e688b8d9660e67aec26e944bed32f4e9173a7
Author: Franck Villaume <[email protected]>
Date:   Tue Aug 17 13:54:33 2021 +0200

    remove unused vars

diff --git a/src/plugins/scmbzr/common/BzrPlugin.class.php 
b/src/plugins/scmbzr/common/BzrPlugin.class.php
index 758bf68..4255bfd 100644
--- a/src/plugins/scmbzr/common/BzrPlugin.class.php
+++ b/src/plugins/scmbzr/common/BzrPlugin.class.php
@@ -289,10 +289,6 @@ over it to the project's administrator.");
                        $year = $params ['year'] ;
                        $month = $params ['month'] ;
                        $day = $params ['day'] ;
-                       $month_string = sprintf( "%04d%02d", $year, $month );
-                       $start_time = gmmktime( 0, 0, 0, $month, $day, $year);
-
-                       $date = sprintf ("%04d-%02d-%02d", $year, $month, $day);
 
                         $updates = 0 ;
                         $adds = 0 ;
@@ -311,6 +307,7 @@ over it to the project's administrator.");
                                return false ;
                        }
 
+                       $month_string = sprintf( "%04d%02d", $year, $month );
                        $pipe = popen("bzr log file://$repo/$branch --long 
--verbose 2> /dev/null", 'r');
 
                        // cleaning stats_cvs_* table for the current day
@@ -344,6 +341,7 @@ over it to the project's administrator.");
                        $curupdates = 0 ;
                        $curcommits = 0 ;
                        $curdeletes = 0 ;
+                       $date = sprintf ("%04d-%02d-%02d", $year, $month, $day);
                         while (! feof ($pipe) &&
                                $line = rtrim (fgets ($pipe))) {
                                if ($line == $sep) {
diff --git a/src/plugins/scmhg/common/HgPlugin.class.php 
b/src/plugins/scmhg/common/HgPlugin.class.php
index 469519e..f5800fb 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -579,7 +579,6 @@ Offer DAV or SSH access.");
                        $year = $params['year'];
                        $month = $params['month'];
                        $day = $params['day'];
-                       $start_time = gmmktime(0, 0, 0, $month, $day, $year);
                        $repolist = $this->getRepositories($project);
                        foreach ($repolist as $repo_name) {
                                $this->gatherStatsRepo($project, $repo_name, 
$year, $month, $day);
diff --git a/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php 
b/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
index 1848bc6..f8bde20 100755
--- a/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
+++ b/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
@@ -91,7 +91,7 @@ function getLog($Input) {
        $Logging = false;
        $Log = '';
        for ( $i=0; $i < $ii ; $i++ ) {
-               if ($Logging==true) {
+               if ($Logging) {
                        $Log .= $Lines[$i]."\n";
                }
                if ($Lines[$i] == 'Log Message:') {

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/scmbzr/common/BzrPlugin.class.php                   | 6 ++----
 src/plugins/scmhg/common/HgPlugin.class.php                     | 1 -
 src/plugins/scmhook/library/scmgit/hooks/committracker/post.php | 2 +-
 3 files changed, 3 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to