diff --git a/lib/util/git/config.spec.ts b/lib/util/git/config.spec.ts index 89327a7fa34fac..1e51d6f827c44c 100644 --- a/lib/util/git/config.spec.ts +++ b/lib/util/git/config.spec.ts @@ -9,6 +9,7 @@ describe('util/git/config', () => { it('uses "close" events, ignores "exit" events from child processes', () => { expect(simpleGitConfig()).toEqual({ completion: { onClose: true, onExit: false }, + config: ['core.quotePath=false'], }); }); @@ -19,6 +20,7 @@ describe('util/git/config', () => { timeout: { block: 50000, }, + config: ['core.quotePath=false'], }); }); }); diff --git a/lib/util/git/config.ts b/lib/util/git/config.ts index 507d10bfb088a3..12bc54b8ac7c77 100644 --- a/lib/util/git/config.ts +++ b/lib/util/git/config.ts @@ -23,6 +23,7 @@ export function simpleGitConfig(): Partial { onClose: true, onExit: false, }, + config: ['core.quotePath=false'], }; // https://github.com/steveukx/git-js/pull/591 const gitTimeout = GlobalConfig.get('gitTimeout'); diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index 53fec36f6be043..696f2dc602bd32 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -237,8 +237,8 @@ export async function initRepo(args: StorageConfig): Promise { const { localDir } = GlobalConfig.get(); git = simpleGit(localDir, simpleGitConfig()).env({ ...process.env, - LANG: 'C', - LC_ALL: 'C', + LANG: 'C.UTF-8', + LC_ALL: 'C.UTF-8', }); gitInitialized = false; submodulesInitizialized = false;