Add test for branch change on fetching code change
In gitlab-org/gitlab-runner#4080 (comment 154587337) it was mentioed that when using the shell runner on cmd and the repo is already cloned, it is not checking out the correct directory. Using delayed expansion for error handling fixes this. Added a test to have this case covered.
Showing with 23 additions and 3 deletions