git: let git parse the commit.gpgsign boolean

This commit is contained in:
dualfroz committed 2026-10-13 23:18:11 +02:00
1 parent 9f2b42c25c
commit 56c9a4d5f6
3 files changed
+9 -5

No files matched your search

+5 -1
View File
@@ -1411,13 +1411,17 @@ export class Repository {
return this.git.spawn(args, options);
}
async config(command: string, scope: string, key: string, value: any = null, options: SpawnOptions = {}): Promise<string> {
async config(command: string, scope: string, key: string, value: any = null, options: SpawnOptions = {}, type?: string): Promise<string> {
const args = ['config', `--${command}`];
if (scope) {
args.push(`--${scope}`);
}
if (type) {
args.push(`--${type}`);
}
args.push(key);
if (value) {