code update
This commit is contained in:
parent
edbd6c4eac
commit
eaed1bc8d7
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class GitCount extends Command {
|
|||
|
||||
var shell = StringBuffer(getCDPath(workspace));
|
||||
shell.write(' && git rev-list --all HEAD --all --count');
|
||||
var process = await ProcessExecutor.start(shell);
|
||||
var process = await ProcessExecutor.start(shell, printStderr: false);
|
||||
var exitCode = await process.process.exitCode;
|
||||
var number = int.parse(process.stdoutArr.last);
|
||||
setReturn(data.result_value, number);
|
||||
|
|
@ -46,7 +46,7 @@ class GitRev extends Command {
|
|||
|
||||
var shell = StringBuffer(getCDPath(workspace));
|
||||
shell.write(' && git rev-parse HEAD');
|
||||
var process = await ProcessExecutor.start(shell);
|
||||
var process = await ProcessExecutor.start(shell, printStderr: false);
|
||||
var exitCode = await process.process.exitCode;
|
||||
var hash = process.stdoutArr.last;
|
||||
setReturn(data.result_value, hash);
|
||||
|
|
|
|||
Loading…
Reference in a new issue