From c958ed6a85da470fd708a69c348a384b74a3f750 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 19 Sep 2018 09:38:35 -0700 Subject: [PATCH] chore: fix await in cleanup script (#14670) --- script/release-artifact-cleanup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release-artifact-cleanup.js b/script/release-artifact-cleanup.js index a6e84c6dcd3c..d15a864dcbb3 100644 --- a/script/release-artifact-cleanup.js +++ b/script/release-artifact-cleanup.js @@ -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)