pub fn resolve(
objects_directory: PathBuf,
current_dir: &Path,
) -> Result<Vec<PathBuf>, Error>
Expand description
Given an objects_directory
, try to resolve alternate object directories possibly located in the
./info/alternates
file into canonical paths and resolve relative paths with the help of the current_dir
.
If no alternate object database was resolved, the resulting Vec
is empty (it is not an error
if there are no alternates).
It is an error once a repository is seen again as it would lead to a cycle.