git api: make cwd mandatory

This commit is contained in:
Joao Moreno
2018-08-22 13:06:26 +02:00
parent a49378e26c
commit f9982d29d4
3 changed files with 10 additions and 6 deletions

View File

@@ -427,6 +427,10 @@ export class Git {
return await this._exec(args, options);
}
async exec2(args: string[], options: SpawnOptions = {}): Promise<IExecutionResult<string>> {
return await this._exec(args, options);
}
stream(cwd: string, args: string[], options: SpawnOptions = {}): cp.ChildProcess {
options = assign({ cwd }, options || {});
return this.spawn(args, options);