Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is bitbucket not automatically updating my pull request?

After pushing to a branch that's the subject of a pull request, I'm getting the message

There are new commits not included in this pull request. Update now.

Why am I getting this, rather than the pull request being automatically updated?

The only difference between this pull request and other ones I've made with bitbucket is that this one involved a merge conflict, which I've since resolved. Does that play a role?

I tried searching for the error message, and only came across other people with the same question.

like image 904
Andrew Grimm Avatar asked Oct 12 '15 22:10

Andrew Grimm


People also ask

How do you refresh a pull request?

To update by rebasing, click the drop down menu next to the Update Branch button, click Update with rebase, and then click Rebase branch. Previously, Update branch performed a traditional merge that always resulted in a merge commit in your pull request branch.

Why is my pull request not showing?

Cause. Cause#1: The pull request is not up to date with the tip of the source branch, or the tip of the target branch.


1 Answers

Late to the table, but in short it's because Bitbucket Web UI knows about changes in the repo stored on the bitbucket infrastructure due to the git hooks it installs.

In some cases these become corrupted and rage ensues.

I've found the easiest way to deal with this is close your PR and re-open a new one. :s

source: https://confluence.atlassian.com/bitbucketserverkb/pull-requests-not-reflecting-changes-pushed-to-remote-branch-779171762.html

like image 191
airtonix Avatar answered Nov 10 '22 15:11

airtonix