[Fusionforge-commits] FusionForge branch master updated. e3197c4b6f50c1881d4e4b2e2f5b62f0c5b65f5d

Franck VILLAUME nerville at fusionforge.org
Sun Mar 17 18:06:42 CET 2013


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  e3197c4b6f50c1881d4e4b2e2f5b62f0c5b65f5d (commit)
      from  9791a14ad9d6b208728a2381c83d213912be23b6 (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 -----------------------------------------------------------------
commit e3197c4b6f50c1881d4e4b2e2f5b62f0c5b65f5d
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Mar 17 18:05:45 2013 +0100

    scmhook: fix php warning

diff --git a/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php b/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
index 04ecf26..914a160 100755
--- a/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
+++ b/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
@@ -1,11 +1,12 @@
 #! /usr/bin/php
 <?php
 /**
- * GForge Plugin SVNTracker HTTPPoster
+ * Fusionforge Plugin SVNTracker HTTPPoster
  *
  * Portions Copyright 2004 (c) Roland Mas <99.roland.mas @nospam@ aist.enst.fr>
  * The rest Copyright 2004 (c) Francisco Gimeno <kikov @nospam@ kikov.org>
  * Copyright 2011, Franck Villaume - Capgemini
+ * Copyright 2013, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -115,13 +116,14 @@ USAGE;
 
 $repository = $argv[1];
 $revision   = $argv[2];
+$svn_tracker_debug = 0;
 
 $UserName = trim(`svnlook author -r $revision $repository`); //username of author
 $date    = trim(`svnlook date -r $revision $repository`); //date
 $log     = trim(`svnlook log -r $revision $repository`); // the log
 $changed = trim(`svnlook changed -r $revision $repository | sed 's/[A-Z]*   //'`); // the filenames
 
-if ($svn_tracker_debug) {
+if (isset($svn_tracker_debug) && $svn_tracker_debug == 1) {
 	fwrite($file,"Vars filled:\n");
 	fwrite($file,"username :  " . $UserName . " \n");
 	fwrite($file,"date :  " . $date . " \n");

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

Summary of changes:
 src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list