Skip to main content

repositories

Function repositories 

Source
pub fn repositories<'a>(grants: &[&'a str]) -> Vec<(&'a str, &'a str)>
Expand description

The repositories an invite’s grants name, each with the folder choir join clones it into, in grant order.

A grant is the node’s <repo|*> <level> [until=…] spelling. * names no repository, so it clones nothing; the same repository under both of the ACL’s spellings (owner/name and owner/name.git) is one clone, not two into the same folder. The folder is the last path segment, which is where a plain git clone of the same URL would put it, and a segment that is not a folder name is skipped rather than handed to git as a path.