Improve version handling on component install tasks
requested to merge 34788-testenv-doesn-t-update-the-component-correctly-when-a-branch-is-specified into master
What does this MR do?
Fixes an issue where, when using branch versions, the component wouldn't
be updated after the first branch checkout. We also save one step, since
checking out the FETCH_HEAD with -f
already does what reset --hard
did.
Are there points in the code the reviewer needs to double check?
No
Why was this MR needed?
Branch versions of components (Shell, Gitaly) weren't being updated properly.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #34788 (closed)