comparison CONTRIBUTORS @ 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 02cfb2197c63
children a48802bf7134
comparison
equal deleted inserted replaced
6003:a90f8f33adeb 6004:c9f97be1927e