Skip to content
Snippets Groups Projects
Commit b63d7938 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Improve git repository reset.

parent 891537fc
No related branches found
No related tags found
No related merge requests found
Pipeline #2155 passed
......@@ -343,6 +343,7 @@ function objectFromVersion(
async function resetGitRepository() {
// Reset current repo, because it may have been tranformed by a previous CI that failed.
await $`git reset --hard`
await $`git switch ${CI_COMMIT_BRANCH}`
await $`git fetch origin ${CI_COMMIT_BRANCH}`
await $`git reset --hard origin/${CI_COMMIT_BRANCH}`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment