fixup markdown

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-09-04 16:13:04 +02:00
parent 4ae367da59
commit 8d4a7f5396

View file

@ -15,31 +15,22 @@ So here are the steps to follow to remove the branch <branch> from the package
- Clone the releng repo if you do not already have it:
::
git clone https://pagure.io/releng.git
- If you already have it, pull the latest changes:
::
pushd releng && git pull --rebase && popd
- Clone the <foo> package locally:
::
fedpkg clone <foo>
- Checkout the <branch> branch:
::
cd clone && git checkout <branch>
- Run the script:
::
python ../releng/scripts/distgit-branch-unused.py <branch>
(If needed, see the ``--help`` of the script for more information)
@ -49,31 +40,22 @@ If the script returns that the branch is safe to delete:
- Go to pkgs01 as root
::
ssh pkgs01.iad2.fedoraproject.org
- Go to the git repository:
::
cd /srv/git/repositories/<namespace>/<foo>.git
- Move the head of the branch (this allows to recover it later if needed):
::
mv refs/heads/<branch> heads_<branch>
- On your local clone of <foo>, check that the branch was deleted upstream:
::
git fetch -p
This should show something like:
::
$ git fetch -p
From ssh://pkgs.fedoraproject.org/<namespace>/<foo>
- [deleted] (none) -> origin/<branch>