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.1 has been updated
       via  e7d585a1a22fc4e30352f98278482a1e63e7a4ab (commit)
      from  d7ae534262efbbf732890dc04ff059e2bb53ddf6 (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=e7d585a1a22fc4e30352f98278482a1e63e7a4ab

commit e7d585a1a22fc4e30352f98278482a1e63e7a4ab
Author: Franck Villaume <[email protected]>
Date:   Sun Oct 15 13:17:11 2017 +0200

    missing rollback

diff --git a/src/bin/populate_template_project.php 
b/src/bin/populate_template_project.php
index 07ecfdb..31603d8 100755
--- a/src/bin/populate_template_project.php
+++ b/src/bin/populate_template_project.php
@@ -161,8 +161,8 @@ function populateProject($project) {
 
        $ra = RoleAnonymous::getInstance();
        $rl = RoleLoggedIn::getInstance();
-       $ra->linkProject ($project);
-       $rl->linkProject ($project);
+       $ra->linkProject($project);
+       $rl->linkProject($project);
 
        $ra->setSetting('project_read', $project->getID(), 1);
        $rl->setSetting('project_read', $project->getID(), 1);
@@ -243,6 +243,7 @@ if (isset($argv[1]) && in_array($argv[1], array('-h', '-?', 
'--help'))) {
                exit(1);
        }
        if (!populateProject($project)) {
+               db_rollback();
                echo _('Error')._(': ')._('could not populate new group')._(': 
').$project->getErrorMessage()."\n";
                exit(1);
        }

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

Summary of changes:
 src/bin/populate_template_project.php | 5 +++--
 1 file changed, 3 insertions(+), 2 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