mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-14 16:25:52 +08:00
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:
committed by
Jani Heikkinen
parent
3f0739b279
commit
cd12d1f202
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user