summaryrefslogtreecommitdiff
path: root/tools/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/util.js')
-rw-r--r--tools/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/util.js b/tools/util.js
index d164ca954..49279df58 100644
--- a/tools/util.js
+++ b/tools/util.js
@@ -14,10 +14,10 @@ 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 { success, stdout } = await Deno.spawn("git", {
+ const { success, stdout } = await new Deno.Command("git", {
stderr: "inherit",
args,
- });
+ }).output();
const output = new TextDecoder().decode(stdout);
if (!success) {
throw new Error("gitLsFiles failed");