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, Branch_5_3 has been updated
       via  eba340342a21afe37fc4822327362086213fb2c8 (commit)
      from  14d1214fdc331571942ce92cf46309adecfffb4b (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 eba340342a21afe37fc4822327362086213fb2c8
Author: Sylvain Beucler <[email protected]>
Date:   Mon Jun 16 15:06:12 2014 +0200

    git: suppress 'warning: You appear to have cloned an empty repository.' in 
create_scm_repos.php

diff --git a/src/CHANGES b/src/CHANGES
index f44ffdf..f711fa6 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -1,5 +1,6 @@
 Fusionforge-5.3.2:
 * Software map: fix "value too long for type character varying(255)" error in 
cron db_trove_maint.php (Inria)
+* SCM Git: suppress 'warning: You appear to have cloned an empty repository.' 
in create_scm_repos.php (Inria)
 
 Fusionforge-5.3.1:
 * Docman: Basic Webdav write mkcol support (TrivialDev)
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php 
b/src/plugins/scmgit/common/GitPlugin.class.php
index 93bee6a..e1ecb7b 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -399,7 +399,7 @@ class GitPlugin extends SCMPlugin {
                }
                if (!is_file("$repodir/HEAD") && !is_dir("$repodir/objects") && 
!is_dir("$repodir/refs")) {
                        // 'cd $root' because git will abort if e.g. we're in a 
0700 /root after setuid
-                       system("cd $root;git clone --bare --quiet 
--no-hardlinks $main_repo $repodir");
+                       system("cd $root;git clone --bare --quiet 
--no-hardlinks $main_repo $repodir 2>&1 >/dev/null | grep -v 'warning: You 
appear to have cloned an empty repository.' >&2");
                        system("GIT_DIR=\"$repodir\" git update-server-info");
                        if (is_file("$repodir/hooks/post-update.sample")) {
                                rename("$repodir/hooks/post-update.sample",
@@ -526,7 +526,7 @@ class GitPlugin extends SCMPlugin {
                        $repodir = $root . '/' .  $repo_name . '.git';
                        if (!is_file("$repodir/HEAD") && 
!is_dir("$repodir/objects") && !is_dir("$repodir/refs")) {
                                if ($clone_url != '') {
-                                       system("cd $root;git clone --quiet 
--bare $clone_url $repodir");
+                                       system("cd $root;git clone --quiet 
--bare $clone_url $repodir 2>&1 >/dev/null | grep -v 'warning: You appear to 
have cloned an empty repository.' >&2");
                                } else {
                                        system("GIT_DIR=\"$repodir\" git init 
--quiet --bare --shared=group");
                                }

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

Summary of changes:
 src/CHANGES                                   |    1 +
 src/plugins/scmgit/common/GitPlugin.class.php |    4 ++--
 2 files 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