chore: fix await in cleanup script

This commit is contained in:
Shelley Vohr 2018-09-18 08:19:40 -07:00 committed by Electron Bot
parent 34c202518d
commit e405103880

View file

@ -37,7 +37,7 @@ async function getCurrentBranch (gitDir) {
}
async function revertBumpCommit (tag) {
const branch = getCurrentBranch()
const branch = await getCurrentBranch()
const commitToRevert = getLastBumpCommit(tag).hash
await GitProcess.exec(['revert', commitToRevert], gitDir)
const pushDetails = await GitProcess.exec(['push', 'origin', `HEAD:${branch}`, '--follow-tags'], gitDir)