comparison LICENSE.md @ 6004:c9f97be1927e

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.
author Andrew Shadura <andrew@shadura.me>
date Tue, 12 Jul 2016 21:47:14 +0200
parents 81a1eb6cd56e
children 968f2d4214e8
comparison
equal deleted inserted replaced
6003:a90f8f33adeb 6004:c9f97be1927e