'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.
Solution 1:[1]
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
Solution 2:[2]
Try and make sure that:
- upstream is up-to-date (
git fetch upstream
, withupstream
being a remote referencing the original repo) - your PR branch is rebased on top of upstream/master (with potential merge conflict resolution)
Then try a git push --force
and see if the PR update takes place or not.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | airtonix |
Solution 2 | VonC |