Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK committed Dec 4, 2024
1 parent 084f953 commit 76359dd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/targets/sentryPypi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
});

Expand Down

0 comments on commit 76359dd

Please sign in to comment.