Blame doc/usage/trouble/inaccessible_pr.rst
|
Pierre-Yves Chibon |
a39c96 |
Inaccessible pull-requests
|
|
Pierre-Yves Chibon |
a39c96 |
==========================
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
The symptoms
|
|
Pierre-Yves Chibon |
a39c96 |
------------
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
When trying to open a pull-request, if you run into this error:
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
::
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
The branch into which this pull-request was to be merged: XXX seems to
|
|
Pierre-Yves Chibon |
a39c96 |
no longer be present in this repo
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
(Where ``XXX`` is a branch name).
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
.. image:: _static/inaccessible_pr.png
|
|
Pierre-Yves Chibon |
a39c96 |
:target: _static/inaccessible_pr.png
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
(Here ``XXX`` is ``m2``).
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
This means that the pull-request was opened against a branch on your repo and
|
|
Pierre-Yves Chibon |
a39c96 |
that this branch no longer exists.
|
|
Pierre-Yves Chibon |
ba55ad |
Pagure is therefore unable to compute the diff between the sources and
|
|
Pierre-Yves Chibon |
ba55ad |
the target of the pull-request.
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
The pull-request is thus inaccessible but remains in the list of open
|
|
Pierre-Yves Chibon |
a39c96 |
pull-requests.
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
The solution
|
|
Pierre-Yves Chibon |
a39c96 |
------------
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
The easiest solution to solve this problem is to re-create the target branch
|
|
Pierre-Yves Chibon |
a39c96 |
in your repo.
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
This can be done using git simply by doing:
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
::
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
git checkout -b <branch_name></branch_name>
|
|
Pierre-Yves Chibon |
ba55ad |
git push origin <branch_name></branch_name>
|
|
Pierre-Yves Chibon |
a39c96 |
|
|
Pierre-Yves Chibon |
a39c96 |
It will create the branch named ``<branch_name>`` in pagure, allowing the</branch_name>
|
|
Pierre-Yves Chibon |
a39c96 |
diff to be computed for that pull-request and thus allowing it to be
|
|
Pierre-Yves Chibon |
a39c96 |
displayed. It is then up to you to see if this pull-request is still relevant
|
|
Pierre-Yves Chibon |
a39c96 |
and should be merged or closed.
|