diff options
author | Satya Rohith <me@satyarohith.com> | 2022-07-21 14:15:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 14:15:15 +0530 |
commit | e98e0da8b218aa2b68d82ee7d777f499b10237aa (patch) | |
tree | 05cc660c005c35bdc27a4f37be295a0f06a3ccee /tools/util.js | |
parent | f0e01682cce638303e3b6997788667a0f71dff8d (diff) |
fix(tools): upgrade to new `Deno.spawn` api (#15265)
Diffstat (limited to 'tools/util.js')
-rw-r--r-- | tools/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/util.js b/tools/util.js index c76456b9a..d164ca954 100644 --- a/tools/util.js +++ b/tools/util.js @@ -14,12 +14,12 @@ export { delay } from "../test_util/std/async/delay.ts"; export const ROOT_PATH = dirname(dirname(fromFileUrl(import.meta.url))); async function getFilesFromGit(baseDir, args) { - const { status, stdout } = await Deno.spawn("git", { + const { success, stdout } = await Deno.spawn("git", { stderr: "inherit", args, }); const output = new TextDecoder().decode(stdout); - if (!status.success) { + if (!success) { throw new Error("gitLsFiles failed"); } |