chore: fix await in cleanup script (#14695)

This commit is contained in:
trop[bot]
2018-09-19 10:10:23 -07:00
committed by Shelley Vohr
parent d2f7570e86
commit cb70ec0cca

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)