I'm having trouble checking out a commit using labels.
I had made a commit and labelled the commit 1.0
. I had to do some rebasing that ended changing some of the commits in my history which lead me needing to relabel the 1.0
tag on a new commit. When I manually checked out the label using git checkout 1.0
the new commit is checked out and it works great. There is a scenario where checking out the label ends up pointing to the old commit... The scenario is when I use a python script to perform the git checkout and I have the script called from a Bamboo Atlassian Job.
Does anyone know what could be causing the history not to be updated? Note that the bamboo job cleans up it's environment every time.