Skip to content

Commit c1ed063

Browse files
authored
Git - sequantialize calls to git config (microsoft#249709)
1 parent 1b63c82 commit c1ed063

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/git/src/git.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { CancellationError, CancellationToken, ConfigurationChangeEvent, LogOutp
1616
import { Commit as ApiCommit, Ref, RefType, Branch, Remote, ForcePushMode, GitErrorCodes, LogOptions, Change, Status, CommitOptions, RefQuery as ApiRefQuery, InitOptions } from './api/git';
1717
import * as byline from 'byline';
1818
import { StringDecoder } from 'string_decoder';
19+
import { sequentialize } from './decorators';
1920

2021
// https://github.com/microsoft/vscode/issues/65693
2122
const MAX_CLI_LENGTH = 30000;
@@ -1239,6 +1240,7 @@ export class Repository {
12391240
return this.git.spawn(args, options);
12401241
}
12411242

1243+
@sequentialize
12421244
async config(command: string, scope: string, key: string, value: any = null, options: SpawnOptions = {}): Promise<string> {
12431245
const args = ['config', `--${command}`];
12441246

0 commit comments

Comments
 (0)