Force the C locale for git subprocesses so git output used for error classification remains stable and parseable regardless of the user shell language.
Add a regression test that simulates a localized git "not a repository" error and verifies it is classified as ErrRepositoryNotExists.
Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>