aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Coudoin <bruno.coudoin@gcompris.net>2014-10-11 16:16:36 +0200
committerJani Heikkinen <jani.heikkinen@digia.com>2014-10-17 13:26:43 +0200
commitcd12d1f202333a0b9571dd0f84ecf8e63a7059d3 (patch)
tree6a6dcb30061d39557af5db4936011010c8659bb3
parent3f0739b279123e0a049d52da455f40ad1a20b4ab (diff)
fix to let init-repository work on non english locale
This patch forces the C locale before calling 'git submodule' in order to get the non localized string 'Entering' that we filter out. Change-Id: I46d3770956a6b07e574ad15549bbb8942285b800 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rwxr-xr-xinit-repository2
1 files changed, 2 insertions, 0 deletions
diff --git a/init-repository b/init-repository
index 238de704..2902181b 100755
--- a/init-repository
+++ b/init-repository
@@ -506,6 +506,8 @@ sub git_install_hooks
return if (!-d 'qtrepotools/git-hooks');
+ # Force C locale as git submodule returns the localized string "Entering"
+ local $ENV{LC_ALL} = 'C';
chomp(my @modules = `git submodule foreach :`);
push @modules, "";
for my $module (@modules) {