1
0

inaccessible_pr.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Inaccessible pull-requests
  2. ==========================
  3. The symptoms
  4. ------------
  5. When trying to open a pull-request, if you run into this error:
  6. ::
  7. The branch into which this pull-request was to be merged: XXX seems to
  8. no longer be present in this repo
  9. (Where ``XXX`` is a branch name).
  10. .. image:: _static/inaccessible_pr.png
  11. :target: ../../_images/inaccessible_pr.png
  12. (Here ``XXX`` is ``m2``).
  13. This means that the pull-request was opened against a branch on your repo and
  14. that this branch no longer exists.
  15. Pagure is therefore unable to compute the diff between the sources and
  16. the target of the pull-request.
  17. The pull-request is thus inaccessible but remains in the list of open
  18. pull-requests.
  19. The solution
  20. ------------
  21. The easiest solution to solve this problem is to re-create the target branch
  22. in your repo.
  23. This can be done using git simply by doing:
  24. ::
  25. git checkout -b <branch_name>
  26. git push origin <branch_name>
  27. It will create the branch named ``<branch_name>`` in pagure, allowing the
  28. diff to be computed for that pull-request and thus allowing it to be
  29. displayed. It is then up to you to see if this pull-request is still relevant
  30. and should be merged or closed.