Skip to content

Commit

Permalink
fix: ignore git error output
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Sep 24, 2024
1 parent d9ffb2b commit 625e879
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/bundler-plugin-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ export function stringToUUID(str: string): string {
function gitRevision(): string | undefined {
let gitRevision: string | undefined;
try {
gitRevision = childProcess.execSync("git rev-parse HEAD").toString().trim();
gitRevision = childProcess
.execSync("git rev-parse HEAD", { stdio: ["ignore", "pipe", "ignore"] })
.toString()
.trim();
} catch (e) {
// noop
}
Expand Down

0 comments on commit 625e879

Please sign in to comment.