Skip to content

Commit

Permalink
fix: Ignore stderr output from git command (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome authored Sep 24, 2024
1 parent b8b5b55 commit 75a5d1d
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 75a5d1d

Please sign in to comment.