chore: fix await in cleanup script (#14670)

This commit is contained in:
Shelley Vohr 2018-09-19 09:38:35 -07:00 committed by GitHub
parent 1b165c2c39
commit c958ed6a85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)