chore: fix branch trimming for blast-off releases (#18907)
This commit is contained in:
parent
7e5ea179a1
commit
57c099d8b8
1 changed files with 2 additions and 3 deletions
|
@ -28,8 +28,7 @@ function getAbsoluteElectronExec () {
|
||||||
async function handleGitCall (args, gitDir) {
|
async function handleGitCall (args, gitDir) {
|
||||||
const details = await GitProcess.exec(args, gitDir)
|
const details = await GitProcess.exec(args, gitDir)
|
||||||
if (details.exitCode === 0) {
|
if (details.exitCode === 0) {
|
||||||
const output = details.stdout.replace(/^\*|\s+|\s+$/, '')
|
return details.stdout.replace(/^\*|\s+|\s+$/, '')
|
||||||
return output.trim()
|
|
||||||
} else {
|
} else {
|
||||||
const error = GitProcess.parseError(details.stderr)
|
const error = GitProcess.parseError(details.stderr)
|
||||||
console.log(`${fail} couldn't parse git process call: `, error)
|
console.log(`${fail} couldn't parse git process call: `, error)
|
||||||
|
@ -48,7 +47,7 @@ async function getCurrentBranch (gitDir) {
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return branch
|
return branch.trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue