Skip to content

Commit

Permalink
chore: fix branch trimming for blast-off releases (#18908)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Jun 21, 2019
1 parent 4318ad8 commit eb821a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script/lib/utils.js
Expand Up @@ -27,8 +27,7 @@ function getAbsoluteElectronExec () {
async function handleGitCall (args, gitDir) {
const details = await GitProcess.exec(args, gitDir)
if (details.exitCode === 0) {
const output = details.stdout.replace(/^\*|\s+|\s+$/, '')
return output.trim()
return details.stdout.replace(/^\*|\s+|\s+$/, '')
} else {
const error = GitProcess.parseError(details.stderr)
console.log(`${fail} couldn't parse git process call: `, error)
Expand All @@ -47,7 +46,7 @@ async function getCurrentBranch (gitDir) {
process.exit(1)
}
}
return branch
return branch.trim()
}

module.exports = {
Expand Down

0 comments on commit eb821a3

Please sign in to comment.