Skip to content

Commit

Permalink
fix: add .trim()
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Nov 16, 2024
1 parent f0c4e87 commit 9dffe17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/promote_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@ export default class ReleasePromotion extends Session {
'-m',
`PR-URL: https://github.com/nodejs/node/pull/${prid}`
], { ignoreFailure: false });
return forceRunAsync('git', ['rev-parse', 'HEAD'],
const workingOnNewReleaseCommit = await forceRunAsync('git', ['rev-parse', 'HEAD'],
{ ignoreFailure: false, captureStdout: true });
return workingOnNewReleaseCommit.trim();
}

async pushToRemote(workingOnNewReleaseCommit) {
Expand Down

0 comments on commit 9dffe17

Please sign in to comment.