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>
This commit is contained in:
Bruno Coudoin
2014-10-11 16:16:36 +02:00
committed by Jani Heikkinen
parent 3f0739b279
commit cd12d1f202

View File

@@ -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) {