[Fusionforge-commits] FusionForge branch 6.0 updated. a20462664cf7dd5940d51420cb36604b96109913

Sylvain Beucler beuc-inria at libremir.placard.fr.eu.org
Wed May 27 18:18:50 CEST 2015


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, 6.0 has been updated
       via  a20462664cf7dd5940d51420cb36604b96109913 (commit)
      from  f550b3852ddb33f181b7e19e915e9c1717b1e04a (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 a20462664cf7dd5940d51420cb36604b96109913
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Wed May 27 18:17:43 2015 +0200

    scmhook: don't pollute the svn/git output unless there's an actual error

diff --git a/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php b/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
index a9008a5..779ffe4 100755
--- a/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
+++ b/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
@@ -176,8 +176,8 @@ $artifacts_involved = getInvolvedArtifacts($log);
 
 if ((!is_array($tasks_involved) || count($tasks_involved) < 1) &&
 	(!is_array($artifacts_involved) || count($artifacts_involved) < 1)) {
-	//nothing to post
-	die("No artifacts nor tasks in the commit log\n");
+	// No artifacts nor tasks in the commit log
+	exit(0);
 }
 
 $i = 0;
diff --git a/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php b/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
index 7fa2572..078131a 100755
--- a/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
+++ b/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
@@ -116,8 +116,8 @@ $tasks_involved = getInvolvedTasks($log);
 $artifacts_involved = getInvolvedArtifacts($log);
 if ((!is_array($tasks_involved) || count($tasks_involved) < 1) &&
 	(!is_array($artifacts_involved) || count($artifacts_involved) < 1)) {
-	//nothing to post
-	die("No artifacts nor tasks in the commit log\n");
+	// No artifacts nor tasks in the commit log
+	exit(0);
 }
 
 foreach ($changed as $onefile) {

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

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

diff --git a/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php b/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
index a9008a5..779ffe4 100755
--- a/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
+++ b/src/plugins/scmhook/library/scmgit/hooks/committracker/post.php
@@ -176,8 +176,8 @@ $artifacts_involved = getInvolvedArtifacts($log);
 
 if ((!is_array($tasks_involved) || count($tasks_involved) < 1) &&
 	(!is_array($artifacts_involved) || count($artifacts_involved) < 1)) {
-	//nothing to post
-	die("No artifacts nor tasks in the commit log\n");
+	// No artifacts nor tasks in the commit log
+	exit(0);
 }
 
 $i = 0;
diff --git a/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php b/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
index 7fa2572..078131a 100755
--- a/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
+++ b/src/plugins/scmhook/library/scmsvn/hooks/committracker/post.php
@@ -116,8 +116,8 @@ $tasks_involved = getInvolvedTasks($log);
 $artifacts_involved = getInvolvedArtifacts($log);
 if ((!is_array($tasks_involved) || count($tasks_involved) < 1) &&
 	(!is_array($artifacts_involved) || count($artifacts_involved) < 1)) {
-	//nothing to post
-	die("No artifacts nor tasks in the commit log\n");
+	// No artifacts nor tasks in the commit log
+	exit(0);
 }
 
 foreach ($changed as $onefile) {


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list