X Tutup
Skip to content

Commit bd48dfe

Browse files
trop[bot]codebytere
authored andcommitted
chore: fix branch trimming for blast-off releases (electron#18909)
1 parent 9b47f58 commit bd48dfe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

script/lib/utils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ function getAbsoluteElectronExec () {
2727
async function handleGitCall (args, gitDir) {
2828
const details = await GitProcess.exec(args, gitDir)
2929
if (details.exitCode === 0) {
30-
const output = details.stdout.replace(/^\*|\s+|\s+$/, '')
31-
return output.trim()
30+
return details.stdout.replace(/^\*|\s+|\s+$/, '')
3231
} else {
3332
const error = GitProcess.parseError(details.stderr)
3433
console.log(`${fail} couldn't parse git process call: `, error)
@@ -47,7 +46,7 @@ async function getCurrentBranch (gitDir) {
4746
process.exit(1)
4847
}
4948
}
50-
return branch
49+
return branch.trim()
5150
}
5251

5352
module.exports = {

0 commit comments

Comments
 (0)
X Tutup