|
|
|
@ -65,10 +65,10 @@ task('syncLibVersions', async function () { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
async function setBranchHead(branchName, head) { |
|
|
|
|
await promisifyExec(`git checkout ${branchName}`); |
|
|
|
|
await promisifyExec(`git pull origin ${branchName}`); |
|
|
|
|
console.log(await promisifyExec(`git checkout ${branchName}`)); |
|
|
|
|
console.log(await promisifyExec(`git pull origin ${branchName}`)); |
|
|
|
|
console.log(`pull done for ${branchName}`) |
|
|
|
|
await promisifyExec(`git reset --hard ${head}`); |
|
|
|
|
console.log(await promisifyExec(`git reset --hard ${head}`)); |
|
|
|
|
await promisifyExec(`git push -f origin ${branchName}`); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|