Skip to content

Commit

Permalink
fix(sveltekit): Fix git SHA not being picked up for release (#14540)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Dec 2, 2024
1 parent ecc91bc commit 97abe0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/sveltekit/src/vite/sourceMaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ function getFiles(dir: string): string[] {
function detectSentryRelease(): string {
let releaseFallback: string;
try {
releaseFallback = child_process.execSync('git rev-parse HEAD', { stdio: 'ignore' }).toString().trim();
releaseFallback = child_process
.execSync('git rev-parse HEAD', { stdio: ['ignore', 'pipe', 'ignore'] })
.toString()
.trim();
} catch (_) {
// the command can throw for various reasons. Most importantly:
// - git is not installed
Expand Down

0 comments on commit 97abe0a

Please sign in to comment.