[Fusionforge-commits] FusionForge branch Branch_5_3 updated. b5e43cd88eb211f1d34da9942459ae119ae3141c

Thorsten Glaser mirabilos at fusionforge.org
Tue Jun 17 10:29:01 CEST 2014


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  b5e43cd88eb211f1d34da9942459ae119ae3141c (commit)
      from  55e6da7a8b21eafdc8bff330ef828d08a914837a (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 b5e43cd88eb211f1d34da9942459ae119ae3141c
Author: Thorsten Glaser <t.glaser at tarent.de>
Date:   Tue Jun 17 10:27:50 2014 +0200

    it’s LC_ALL, not LANG, which you want to override
    
    man 7 locale

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index df4a00a..f93e643 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;LANG=C 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("cd $root; LC_ALL=C 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;LANG=C git clone --quiet --bare $clone_url $repodir 2>&1 >/dev/null | grep -v 'warning: You appear to have cloned an empty repository.' >&2");
+					system("cd $root; LC_ALL=C 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/plugins/scmgit/common/GitPlugin.class.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list