Merge pull request #14696 from trop-bot/3-0-x-bp-chore--fix-await-in-cleanup-script-1537375163163

chore: fix await in cleanup script (backport: 3-0-x)
This commit is contained in:
John Kleinschmidt 2018-09-19 14:26:17 -04:00 committed by GitHub
commit 9bb6c9dc99
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) { async function revertBumpCommit (tag) {
const branch = getCurrentBranch() const branch = await getCurrentBranch()
const commitToRevert = getLastBumpCommit(tag).hash const commitToRevert = getLastBumpCommit(tag).hash
await GitProcess.exec(['revert', commitToRevert], gitDir) await GitProcess.exec(['revert', commitToRevert], gitDir)
const pushDetails = await GitProcess.exec(['push', 'origin', `HEAD:${branch}`, '--follow-tags'], gitDir) const pushDetails = await GitProcess.exec(['push', 'origin', `HEAD:${branch}`, '--follow-tags'], gitDir)