From cd12d1f202333a0b9571dd0f84ecf8e63a7059d3 Mon Sep 17 00:00:00 2001 From: Bruno Coudoin Date: Sat, 11 Oct 2014 16:16:36 +0200 Subject: 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 --- init-repository | 2 ++ 1 file changed, 2 insertions(+) (limited to 'init-repository') 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) { -- cgit v1.2.3