Files @ c9f97be1927e
Branch filter:

Location: kallithea/docs/dev/translation.rst - annotation

c9f97be1927e 61 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Andrew Shadura
pygrack: refactor _get_fixedpath

This function strips the repository name and any slashes from the
URL path, leaving the protocol command, like info/refs or
git-{receive,upload}-pack.

Using .split() and .strip() for this purpose isn't entirely reliable
and is entirely unreadable, so it's better to write it out, even if
it's a bit verbose.

Also, error out in the unlikely case the path doesn't start with
a slash and the repository name; that shouldn't happen normally.
.. _translations:
.. include:: ./../../kallithea/i18n/how_to