Skip to main content

run_init_repository

Function run_init_repository 

Source
fn run_init_repository(
    path: &Path,
    algorithm: Algorithm,
    insecure: bool,
) -> Result<InitRepositoryReply, RepositoryError>
Expand description

Initialize (or verify) a repository at path with the given algorithm.

Creates parent directories if needed, then delegates to [Repository::init_path]. Returns true when a new repository was created and false when an identical one already existed (idempotent). A conflicting existing repository (different algorithm) is an error.