Files @ a9bcdc438d69
Branch filter:

Location: kallithea/docs/readme.rst - annotation

a9bcdc438d69 42 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Anton Schur
git: fix pull request deletion - don't crash on deleting refs to PR heads

The refs name was passed as unicode string, and that would cause failure like:
File ".../site-packages/dulwich/repo.py", line 720, in __delitem__
if name.startswith(b"refs/") or name == b"HEAD":
TypeError: startswith first arg must be str or a tuple of str, not bytes

Fixed by correctly passing the ref name as bytes, as we do when creating the PR
refs.

Tests added by Mads Kiilerich.
1
2
3
.. _readme:

.. include:: ./../README.rst