From 76359dd3d1a3d0e7f104267b251cc0d565f15aac Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Wed, 4 Dec 2024 14:14:58 +0000 Subject: [PATCH] lol --- src/targets/sentryPypi.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/targets/sentryPypi.ts b/src/targets/sentryPypi.ts index 740ceaf6..dd0bafda 100644 --- a/src/targets/sentryPypi.ts +++ b/src/targets/sentryPypi.ts @@ -89,20 +89,24 @@ export class SentryPypiTarget extends BaseTarget { ); const contents = fs.readFileSync(path.join(directory, 'packages.ini'), { - encoding: 'UTF-8', + encoding: 'utf-8', }); const tree = ((await spawnProcess( 'git', ['-C', directory, 'rev-parse', 'HEAD:'], {}, { enableInDryRunMode: true } - )) as Buffer).toString('UTF-8').trim(); + )) as Buffer) + .toString('utf-8') + .trim(); const commit = ((await spawnProcess( 'git', ['-C', directory, 'rev-parse', 'HEAD'], {}, { enableInDryRunMode: true } - )) as Buffer).toString('UTF-8').trim(); + )) as Buffer) + .toString('utf-8') + .trim(); return [contents, tree, commit]; });