diff --git a/src/git.js b/src/git.js index bfd84822..1389b7df 100644 --- a/src/git.js +++ b/src/git.js @@ -29,7 +29,7 @@ function checkOutRemoteBranch(context) { // Switch to remote branch core.info(`Switching to the "${context.branch}" branch`); - run(`git branch --force ${context.branch} --track ${remote}/${context.branch}`); + run(`git reset --hard ${remote}/${context.branch}`); run(`git checkout ${context.branch}`); }