Bitbucket showing wrong commit in newly created branch Edited

 

It seems like bitbucket is showing wrong commits for a newly created branch. It shows commits from branches with similar user story numbers from jira in it. See attached screenshot. Is this something that is only a display error or do these wrong commits actually get merged in the newly created branch?

bitbucketcommit.png

 

 

1 answer

0 vote

Hi Sander! You've blurred the commit hash so I'm not able to check to which commit is this actually referring to. The name of the branch doesn't necessarily need to match the contents in there, and the commit message seems to display that something was merged into V2-468. Can you check the commit hash and see if it's referring to the correct one. 

Also, there's a message saying that the branch is 9 commits behind, have you tried syncing?

Regards!

Ana

Hi Ana

I know the name does not have to match the contents, but in this scenario it was a newly created branch that should not have any commits in it, but it immediately shows a commit history. So to be clear: in jira i create a new branch (in this example from development). It then immediately shows these commits although it is a newly created branch... and the comment contains numbers similar to numbers used in the newly created branch name hence my confusion. Alas i cannot reproduce the hash from the branch anymore, as it now does not show the mentioned commit anymore (the faulty one). I looked it up using the comments and i think it was: bc451515e432fc0b2df3d18ae1e3fa0d9a45fee6

p.s. the branch was behind development because there were some commits on development after the branch was created but that should not have anything to do with this problem right?

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

705 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot