I have a job that checks out a specific label from a repository, say V1. I had recently re-written history such that I had to relabel the V1 to the new rewritten history.
When I manually checkout the label ' git checkout V1', it checks out the new commit.
When I trigger the job, the job runs the command 'git checkout V1' but someone how it ends up checking out the OLD commit.
I've tried deleting the git cache but it still checks out the old commit.
Does anyone know why this is happening? How can I get the job to checkout the tag linked to the new commit?