This commit is contained in:
Joao Moreno
2017-06-29 11:05:25 +02:00
parent 0e39ec5af5
commit a05d64d7f0

View File

@@ -155,6 +155,12 @@ export interface IExecutionResult {
}
async function exec(child: cp.ChildProcess, options: any = {}): Promise<IExecutionResult> {
if (!child.stdout || !child.stderr) {
throw new GitError({
message: 'Failed to get stdout or stderr from git process.'
});
}
const disposables: IDisposable[] = [];
const once = (ee: NodeJS.EventEmitter, name: string, fn: Function) => {