Skip to content

Commit

Permalink
fix(hooks): prevent git subprocess from printing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed Apr 2, 2021
1 parent cdab3ad commit a931a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export async function spawn(args: string[], cwd: string): Promise<string> {
const process = Deno.run({
cmd: args,
cwd,
stdout: "piped",
stdout: 'piped',
stderr: 'null',
});
const { code } = await process.status();
if (code === 0) {
Expand Down

0 comments on commit a931a84

Please sign in to comment.