completion: fix completing merge strategies on non-C locales

The anchor string "Available strategies are:" is translatable so
__git_list_merge_strategies may fail to collect available strategies
from 'git merge' on non-C locales. Force C locale on this command.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Duy Nguyen 2018-01-26 08:31:42 +07:00 коммит произвёл Junio C Hamano
Родитель 8279ed033f
Коммит 7cc763aaa3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -594,7 +594,7 @@ __git_is_configured_remote ()
__git_list_merge_strategies ()
{
git merge -s help 2>&1 |
LANG=C LC_ALL=C git merge -s help 2>&1 |
sed -n -e '/[Aa]vailable strategies are: /,/^$/{
s/\.$//
s/.*://