summaryrefslogtreecommitdiff
path: root/lorry-controller-webapp
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-05-14 15:52:23 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-06-01 17:16:38 +0100
commit36a0a30c13e669514ba2bce7a7f77d53f7275a11 (patch)
tree57f51f615b6ec2fbdb0e59d432a6951b8fc7f862 /lorry-controller-webapp
parent1306be9e3ccc086153ffe0e28d2d7062f45dc157 (diff)
downloadlorry-controller-36a0a30c13e669514ba2bce7a7f77d53f7275a11.tar.gz
lsupstreams: Prefer more specific remote prefixes in prefixmap
In order to support Downstream Hosts with restricted repository hierarchies (like Gitea's 2 levels), it is useful to be able to map both a directory and a subdirectory of it from an Upstream Host that has a deeper hierarchy. Convert the prefixmap into a list of (remote, local) tuples and sort in reverse order, so that a subdirectory prefix will appear before its parent directory prefix if both are present.
Diffstat (limited to 'lorry-controller-webapp')
0 files changed, 0 insertions, 0 deletions