Fixes #114433 - adds setting to avoid git config

This commit is contained in:
Eric Amodio
2021-01-15 14:05:35 -05:00
parent 79cfca5aa2
commit 21c11ba864
5 changed files with 17 additions and 2 deletions

View File

@@ -1165,6 +1165,12 @@ export class Repository implements Disposable {
}
delete opts.all;
if (opts.requireUserConfig === undefined || opts.requireUserConfig === null) {
const config = workspace.getConfiguration('git', Uri.file(this.root));
opts.requireUserConfig = config.get<boolean>('requireGitUserConfig');
}
await this.repository.commit(message, opts);
});
}