[Fusionforge-commits] FusionForge branch master updated. 560b9e825a1c185d8961190bdc9841b9731e7724

Alain Peyrat aljeux at fusionforge.org
Fri Dec 7 16:56:54 CET 2012


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  560b9e825a1c185d8961190bdc9841b9731e7724 (commit)
      from  ccb25f010a3259cc0366af07330fd0047e324f39 (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 560b9e825a1c185d8961190bdc9841b9731e7724
Author: Alain Peyrat <alain.peyrat at alcatel-lucent.com>
Date:   Fri Dec 7 16:56:45 2012 +0100

    Ident

diff --git a/src/www/scm/admin/index.php b/src/www/scm/admin/index.php
index 14b3378..ed9c3b7 100644
--- a/src/www/scm/admin/index.php
+++ b/src/www/scm/admin/index.php
@@ -49,35 +49,36 @@ if (getStringFromRequest('form_create_repo')) {
 }
 
 if (getStringFromRequest('create_repository') && getStringFromRequest('submit')) {
-       $repo_name = trim(getStringFromRequest('repo_name'));
-       $description = preg_replace('/[\r\n]/', ' ', getStringFromRequest('description'));
-       $clone = getStringFromRequest('clone');
-       $hook_params = array () ;
-       $hook_params['group_id'] = $group_id;
-       $hook_params['repo_name'] = $repo_name;
-       $hook_params['description'] = $description;
-       $hook_params['clone'] = $clone;
-       $hook_params['error_msg'] = '';
-       plugin_hook_by_reference('scm_add_repo', $hook_params);
-       if ($hook_params['error_msg']) {
-               $error_msg = $hook_params['error_msg'];
-       }
-       else {
-               $feedback = sprintf(_('New repository %s registered, will be created shortly.'), $repo_name);
-       }
+	$repo_name = trim(getStringFromRequest('repo_name'));
+	$description = preg_replace('/[\r\n]/', ' ', getStringFromRequest('description'));
+	$clone = getStringFromRequest('clone');
+	$hook_params = array () ;
+	$hook_params['group_id'] = $group_id;
+	$hook_params['repo_name'] = $repo_name;
+	$hook_params['description'] = $description;
+	$hook_params['clone'] = $clone;
+	$hook_params['error_msg'] = '';
+	plugin_hook_by_reference('scm_add_repo', $hook_params);
+	if ($hook_params['error_msg']) {
+		$error_msg = $hook_params['error_msg'];
+	}
+	else {
+		$feedback = sprintf(_('New repository %s registered, will be created shortly.'), $repo_name);
+	}
 } elseif (getStringFromRequest('delete_repository') && getStringFromRequest('submit')) {
-       $repo_name = trim(getStringFromRequest('repo_name'));
-       $hook_params = array () ;
-       $hook_params['group_id'] = $group_id;
-       $hook_params['repo_name'] = $repo_name;
-       $hook_params['error_msg'] = '';
-       plugin_hook_by_reference('scm_delete_repo', $hook_params);
-       if ($hook_params['error_msg']) {
-               $error_msg = $hook_params['error_msg'];
-       }
-       else {
-               $feedback = sprintf(_('Repository %s is marked for deletion (actual deletion will happen shortly).'), $repo_name);
-       }
+	$repo_name = trim(getStringFromRequest('repo_name'));
+
+	$hook_params = array () ;
+	$hook_params['group_id'] = $group_id;
+	$hook_params['repo_name'] = $repo_name;
+	$hook_params['error_msg'] = '';
+	plugin_hook_by_reference('scm_delete_repo', $hook_params);
+	if ($hook_params['error_msg']) {
+		$error_msg = $hook_params['error_msg'];
+	}
+	else {
+		$feedback = sprintf(_('Repository %s is marked for deletion (actual deletion will happen shortly).'), $repo_name);
+	}
 } elseif (getStringFromRequest('submit')) {
 	$hook_params = array();
 	$hook_params['group_id'] = $group_id;

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

Summary of changes:
 src/www/scm/admin/index.php |   57 ++++++++++++++++++++++---------------------
 1 file changed, 29 insertions(+), 28 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list