Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Git checkout label checks out old commit

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?

1 answer

0 votes

Hi @schow-lmi3d

That is really strange. Bamboo should see exactly what is stored in the remote git repo.

  • Is it possible that the tags update was not transferred to the remote?
    git push --follow-tags
  • What happens if clone this repository again and try to checkout for that tag, will that work as expected?
  • Have you tried a checkout using a script task Bamboo?

If you cleaned the cache in Bamboo, I don't see any reason for this checkout to be referencing the wrong commit.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

250 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you