Skip to content

Commit

Permalink
use git log --format instead
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek committed Sep 16, 2024
1 parent 85ec925 commit 42ea190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wormhole-connect/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { version } = require(packagePath);

let gitHash = 'unknown';
try {
gitHash = execSync("git log | head -n 1 | awk '{ print $2 }'").toString();
gitHash = execSync('git log -1 --format=%H').toString().replace('\n', '');
} catch (e) {
console.error(`Failed to determine git hash! Will be missing from telemetry`);
console.error(e);
Expand Down

0 comments on commit 42ea190

Please sign in to comment.